Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2017 (4)
20082026
  1. …is the language agnostic parser and compiler! [1] https://www.mail-archive.com/fonc@vpri.org/ [2] https://github.com/asrp/pymetaterp
  2. …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…
  3. …anyway, except by editing the Ohm Editor's source.) A sample use case: G2 is something like this: https://github.com/asrp/pymetaterp/blob/master/pymetaterp/bo... The example/input written in L2 that I want to give it is something like this…
    comment by asrp · 2017-03-29 · in Flex
  4. …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