3 ms·
To get to AST you have to create AST nodes. Make a function that captures the output and put it into places where you want to create AST nodes. Sort of like thi
by zzzcpan 8y ago
To get to AST you have to create AST nodes. Make a function that captures the output and put it into places where you want to create AST nodes. Sort of like this:
SEQ(
...
CAPTURE(
// parser to capture
SEQ(...),
// extra arguments:
// a name, a function to call,
// that creates an AST node, etc.
),
)