leafo/moonparse
View on GitHub ↗ ★ 4 MoonScript
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2015-11-17 · latest 2020-02-02
20082026
-
…with writing an lpeg alternative that works more like a parser generator, experimented here https://github.com/leafo/moonparse * Formalizing the syntax transformation pipeline (this would be how things like macros could be implemented) If…
comment by leafo · 2020-02-02 · in MoonScript: Dynamic scripting language that compiles into Lua -
…with compiling LPeg style grammars to C, for even more speed. This uses the peg library: https://github.com/leafo/moonparse You can see how the grammar looks here: https://github.com/leafo/moonparse/blob/master/parse.peg.moo...
comment by leafo · 2016-09-15 · in Show HN: Using Parsing Expression Grammars to rewrite source code -
…is then compiled to c and linked into a Lua module, you can see how the parser is written here: https://github.com/leafo/moonparse/blob/master/parse.peg.moo...
comment by leafo · 2015-11-17 · in Ragel State Machine Compiler