3 ms·
I agree. Usually, I end up leaning on PEGs instead: https://nim-lang.org/docs/pegs.html https://nim-lang.org/docs/pegs.html
by girvo 9y ago
I agree. Usually, I end up leaning on PEGs instead:
https://nim-lang.org/docs/pegs.html https://nim-lang.org/docs/pegs.html
- bmn__ 9y agoThat's pretty bad: import pegs echo "xzxy" =~ peg""" B <- A 'x' 'y' / C A <- '' / 'x' 'z' C <- C 'w' / 'v' """ Stack overflow Nim needs to let go of its toy parsing algorithm.