kevinmehall/rust-peg

How do I count the tab depth

uselessgoddess opened this issue · 1 comments

I don't have access to ParseState. How do I hack this?

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