Create a string based on a syntax tree
Closed this issue · 0 comments
thk2b commented
Implement the reverse of parsing an expression: build an expression given a tree.
const expr = '1+2(4^2)';
parse(lex(expr)).toString() === expr
Closed this issue · 0 comments
Implement the reverse of parsing an expression: build an expression given a tree.
const expr = '1+2(4^2)';
parse(lex(expr)).toString() === expr