4 ms·
That's pretty standard for parsing libraries - have you seen any good ones (for Python or other languages) that don't use a DSL like this? The only one I've se
by simonw 3y ago
That's pretty standard for parsing libraries - have you seen any good ones (for Python or other languages) that don't use a DSL like this?
The only one I've seen is this one: https://parsy.readthedocs.io/en/latest/tutorial.html https://parsy.readthedocs.io/en/latest/tutorial.html
- dleslie 3y agoParse, comparse, parsec and PEGs come to mind. 1: https://github.com/massung/parse https://github.com/massung/parse 2: https://wiki.call-cc.org/eggref/5/comparse https://wiki.call-cc.org/eggref/5/comparse 3: https://hackage.haskell.org/package/parsec https://hackage.haskell.org/package/parsec 4: https://janet-lang.org/docs/peg.html https://janet-lang.org/docs/peg.html
- zelphirkalt 3y agoHere is another PEG one, though Guile allows expressing things as strings and as macro calls / s-expressions: 5: https://www.gnu.org/software/guile/manual/html_node/PEG-Parsing.html https://www.gnu.org/software/guile/manual/html_node/PEG-Pars...