News for hackers. Stuff that matters.
Re:ASCII and Unicode quotation marks by munificent on Thursday September 14, 2017 @12:02AM (#15244914)
It's not hard. Obviously the parser has to do that things that aren't a single token like parenthesized expressions.

Even for things where the nesting does happen during lexical analysis, it's pretty trivial to keep a count in your lexer. Lots of languages support nesting comment syntax or string interpolation, which both have equivalent difficulty.

There are no comments on this comment yet.