Hacker GitHub

← All repos

darius/peglet

View on GitHub ↗ ★ 38 Python

Robinson Crusoe's parsing library

4 mentions on Hacker News by 1 person: 0 stories, 4 comments · first 2013-02-24 · latest 2013-09-09

Mentions per year 4 mentions · busiest year 2013 (4)
20082026
  1. …resolving ambiguity in an unexpected way. Syntax tree : Call semantic actions instead. For example: https://github.com/darius/peglet/blob/master/examples/regex.... Mixed code : Semantic actions are denoted by function names instead of…
    comment by abecedarius · 2013-09-09 · in Why I don't use a parser generator
  2. Right. In Python you might check out my https://github.com/darius/peglet/blob/master/peglet.py which is PEG-based but tries to feel like a modest extension of the built-in re module.
    comment by abecedarius · 2013-05-27 · in The true power of regular expression
  3. …made a concatenative variant of it back in the 80s, and just rewrote the essentials this afternoon: https://github.com/darius/peglet/blob/master/examples/fp.py In my earlier dialect I added a form of local variables, just enough for better…
    comment by abecedarius · 2013-04-13 · in Why Concatenative Programming Matters (2012)
  4. …of Gnu Calc.) Finally, using a small parsing library very similar to the scheme in this post: https://github.com/darius/peglet/blob/master/examples/infix....
    comment by abecedarius · 2013-02-24 · in How To Write A Calculator in 70 Python Lines