Commit 2e1673e0 by nzy

hello

parent e2d476ab
......@@ -27,7 +27,7 @@ class FunctionDef(ast.NodeVisitor):
def visit_FunctionDef(self, node):
if self.is_hole(node):
self.undefined_funs[node.name] = Function(node.name, ast.get_docstring(node), code_from_user=False, prompt_from_user=self.from_user)
self.defined_funs[node.name] = Function(node.name, ast.get_docstring(node), code_from_user=False, prompt_from_user=self.from_user)
else:
self.current_caller = Function(node.name, ast.get_docstring(node), node, code_from_user=self.from_user, prompt_from_user=self.from_user)
self.defined_funs[node.name] = self.current_caller
......
......@@ -70,7 +70,7 @@ sys_str = "[bold red]SYSTEM: [/bold red]"
def system_info(text):
print(sys_str + text)
def print_anpl(anpl, for_user=True):
def print_anpl(anpl, for_user=False):
print(Syntax(anpl.to_python(for_user=for_user), "python"))
def print_text_IOExamples(ios: list[IOExample]):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment