News for hackers. Stuff that matters.
Re:So you want to write your own language? by mattfenwick on Tuesday February 04, 2014 @09:54AM (#7177723)
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.

There are no comments on this comment yet.