asrp/pymetaterp
View on GitHub ↗ ★ 62 Python
A python parser that builds python ASTs in 502 lines of python without using modules
5 mentions on Hacker News by 1 person: 1 story, 4 comments · first 2017-03-11 · latest 2021-03-28
20082026
-
…is the language agnostic parser and compiler! [1] https://www.mail-archive.com/fonc@vpri.org/ [2] https://github.com/asrp/pymetaterp
comment by asrp · 2021-03-28 · in Ohm – A library and language for building parsers, interpreters, compilers, etc. -
…first-thing that can again be given to second-thing. They're also all very self-referential. https://github.com/asrp/pymetaterp The boot portion of this parser can its own AST from its own grammar and its own AST…
comment by asrp · 2017-05-13 · in How to Generate Self-Referential Programs -
…deduce precedences from a grammar. [1] https://en.wikipedia.org/wiki/Parsing_expression_grammar [2] https://github.com/asrp/pymetaterp [3] https://en.wikipedia.org/wiki/Operator-precedence_grammar
comment by asrp · 2017-03-20 · in Show HN: How to write a recursive descent parser