News for hackers. Stuff that matters.
Re:A meta approach to implementing programming languages (2018) by anaphor on Sunday February 24, 2019 @07:19PM (#19241621)
What about PEGs? You can get the benefits of writing down a grammar that you can analyze yourself, and you can call methods on the production results, etc.
Re:A meta approach to implementing programming languages (2018) by ufo on Sunday February 24, 2019 @10:04PM (#19242508)
PEGs have the same downsides the parser combinators have. If you put things in the wrong order you can have programs that work most of the time but do the wrong thing on a corner case or in a parsing ambiguity.