Hacker GitHub

← All repos

spc476/LPeg-Parsers

View on GitHub ↗ ★ 68 Lua

Parsing common data formats via LPeg

6 mentions on Hacker News by 1 person: 0 stories, 6 comments · first 2013-05-24 · latest 2022-07-13

Mentions per year 6 mentions · busiest year 2013 (2)
20082026
  1. …a string of digits into an actual integer value). I have a bunch of Lua modules based around LPeg: https://github.com/spc476/LPeg-Parsers
  2. And I have an implementation in Lua/LPEG: https://github.com/spc476/LPeg-Parsers/blob/master/soundex.l...
  3. …[2] https://github.com/spc476/lua-conmanorg/blob/master/lua/cc.l... [3] https://github.com/spc476/LPeg-Parsers/blob/json-1.0.0/json....
    comment by spc476 · 2017-05-02 · in LuaJIT 2.0.5 and 2.1.0-beta3 released
  4. …to said address, don't use a regex. Use something that's meant for parsing, like LPeg (for example: https://github.com/spc476/LPeg-Parsers/blob/ee63df57826fd5ef... which handles the RFC grammar, including comments) or lex/yacc or something…
    comment by spc476 · 2016-08-18 · in The Public Suffix List
  5. Well, for a personal project I've written a parser for email ( https://github.com/spc476/LPeg-Parsers/blob/master/email.lua ) but I've also used LPeg for work to parse the logging output of some of our components (as part of the regression…
    comment by spc476 · 2013-09-09 · in Why I don't use a parser generator
  6. …some LPeg that parses the headers of an email, certain one can pull out the email address portion: https://github.com/spc476/LPeg-Parsers/blob/master/email.lua ). 2) Take the domain part and do a DNS MX lookup on it (to be pedantic, if…