The things that make parsing languages difficult are things like C’s lexer hack, or the way C++’s template expansion affects parsing. Not theoretical complexity class of the grammar.
-
-
something something vim plug-ins?
1 reply 0 retweets 2 likes -
Vim plugins for syntax coloring can’t and don’t parse the grammar. More complex IDE support will just use libsyntax and be done with it.
2 replies 0 retweets 1 like -
I'd rather we not conflate all rust parsers into libsyntax- independent implementations are good for keeping the spec unambiguous and understandable
1 reply 0 retweets 1 like -
It won’t prevent independent implementations. It’s not like unbounded lookahead is that much of a burden in practice!
1 reply 0 retweets 0 likes -
preventing quality independent implementations?
1 reply 0 retweets 1 like -
Unbounded lookahead doesn’t prevent quality independent implementations. It’s literally a few lines of code in any practical implementation we’re talking about.
1 reply 0 retweets 0 likes -
again, not all implementations are hand-written recursive descent, nor can they be
1 reply 0 retweets 0 likes -
You can use GLR too. And you can even probably use lexer hacks to make it work with yacc.
1 reply 0 retweets 0 likes -
not if you're writing a syntax highlighter in your editor's prescribed format.
1 reply 0 retweets 0 likes
All editors’ “prescribed formats” that I know of are all regexes and are insufficient to parse Rust anyway!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.