Skip to content

Commit

Permalink
Let eval/apply commands use stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
tekknolagi committed Dec 10, 2023
1 parent 05ade2d commit 46fbbb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -3167,7 +3167,7 @@ def eval_command(args: argparse.Namespace) -> None:
logger.debug("Tokens: %s", tokens)
ast = parse(tokens)
logger.debug("AST: %s", ast)
result = eval_exp({}, ast)
result = eval_exp(STDLIB, ast)
print(result)


Expand All @@ -3179,7 +3179,7 @@ def apply_command(args: argparse.Namespace) -> None:
logger.debug("Tokens: %s", tokens)
ast = parse(tokens)
logger.debug("AST: %s", ast)
result = eval_exp({}, ast)
result = eval_exp(STDLIB, ast)
print(result)


Expand Down

0 comments on commit 46fbbb4

Please sign in to comment.