How do I count the tab depth
uselessgoddess opened this issue · 1 comments
uselessgoddess commented
I don't have access to ParseState
. How do I hack this?
kevinmehall commented
For a language with significant whitespace, the recommended approach is to put a lexer in front that turns indentation changes into Indent / Dedent tokens, and then the grammar can handle those just like the {
}
of a C-like language.
See also #223