siggoscript
siggoscript copied to clipboard
break program into statements
Compilation strategy:
- parse with Esprima
- pre-define all vars on global object as undefined
- pre-define all functions on global object via Function constructor
- construct one evalable string for each statement, store in an array
- pass the array to a function that:
- eliminates all temporary scratch storage
- does an indirect eval on each string