Currently, a parse tree is effectively just a tree arrangement of tokens -- however, this is a bit unwieldy for e.g. function definitions, since 'named' values are not expressed well.
E.g.
function(x, y = 1) {}
gives an R LANGSXP with structure:
[`function`, (x =, y = 1), {}]
whereas, for our parse tree, it would probably look like:
Currently, a parse tree is effectively just a tree arrangement of tokens -- however, this is a bit unwieldy for e.g. function definitions, since 'named' values are not expressed well.
E.g.
gives an R
LANGSXP
with structure:whereas, for our parse tree, it would probably look like:
Is this sensible?