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
20082026
-
…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
comment by spc476 · 2022-07-13 · in Six programming languages I’d like to see -
And I have an implementation in Lua/LPEG: https://github.com/spc476/LPeg-Parsers/blob/master/soundex.l...
comment by spc476 · 2019-10-20 · in Soundex – a phonetic algorithm for indexing names by sound -
…[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 -
…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 -
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 -
…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…
comment by spc476 · 2013-05-24 · in Stop Validating Email Addresses With Your Complex Regex