jspython-dev/jspython

Split evaluate into two phases - Parse and Evaluate

ppaska opened this issue · 0 comments

We need to split evaluation into two phases:

  • parse - what parses script (text) and returns AST
  • evaluate - takes AST and execute each instruction.

This should significantly improve performance as well as add more flexibility for usage scenarios

Good articles worth reading:

  1. https://greentreesnakes.readthedocs.io/en/latest/
  1. https://ruslanspivak.com/lsbasi-part7/
  2. https://python-ast-explorer.com/