by Yttrill · 13y ago · 0 comments
The grammar is here:
http://felix-lang.org/lib/grammar
Close examination reveals even the regexps for literals are defined in the grammar. The parser is built on top of the excellent extensible GLR+ parsing tool Dypgen.
In principle the Felix parsing system is independent of Felix. All you need to do is replace the s-expression to Felix AST translator with some kind of pretty printer for s-expressions, even XML, and you can target anything.
No comments yet.