News for hackers. Stuff that matters.
Re:The naked truth about writing a programming language (2014) by qznc on Sunday May 03, 2020 @02:45AM (#23057332)
There is a trick for indentation: Use a context-sensitive lexer in front of a context-free parser. The lexer serves indent and dedent tokens to the parser.

With this trick, you can parse Python with a context-free grammar.

There are no comments on this comment yet.