buxlabs/abstract-syntax-tree

Add more complex examples to specs and README.md

emilos opened this issue · 1 comments

Some quick ideas:

  • How to parse the code to calculate binary expressions? e.g. 1 + 1 becomes 2 after toSource
  • How to mangle function names?
  • How to wrap the code with an immediately invoked function expression?
  • How to drop code like if (true) { ?

etc.

some tests were added here: 5f59bc2