Hacker News new | ask | show | jobs
by girvo 3022 days ago
I agree. Usually, I end up leaning on PEGs instead:

https://nim-lang.org/docs/pegs.html

1 comments

That'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.