Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
TazeTSchnitzel
11y ago
0 comments
Save
Share
I think they specify "INDENT foo DEDENT" and the lexer tracks indentation and issues INDENT/DEDENT as appropriate.
0 comments
1 comments · 1 top-level
top
newest
oldest
falcolas
11y ago
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.
j
/
k
navigate · click thread line to collapse