Re:Sylph: the programming language I want
by TazeTSchnitzel on Sunday March 01, 2015 @09:55AM
(#9127204)
I think they specify "INDENT foo DEDENT" and the lexer tracks indentation and issues INDENT/DEDENT as appropriate.
[ Parent
| on HN ]
This is correct. A bit of state (an indentation width stack) in the lexer creates the block boundaries as clearly for the interpreter as normal braces does.
Any problems in parsing are typically only encountered by stateless parsers.