3 ms·
Yes, that's typically how it works -- at some point, the concrete syntax tree has to be converted to abstract syntax. I wouldn't call it jumping through hoops
by mattfenwick 13y ago
Yes, that's typically how it works -- at some point, the concrete syntax tree has to be converted to abstract syntax.
I wouldn't call it jumping through hoops though. Rather, for me, it's a natural consequence of separation of concerns. I try to build parsers that only know about concrete syntax. A later pass over the CST is responsible for building the AST, which prevents coupling of the parser to the abstract syntax.
YMMV. There's more than one way to skin this cat.