Closed DukeofStars closed 1 year ago
Currently if you want to write a parser that can contain itself, as far as I can tell, you can't. eg.
fn expr<'a>() -> Parser<'a, u8, Expr> { number() | (sym(b'(') * expr() - sym(b')')) }
This fails with "thread 'main' has overflowed its stack".
Never mind, I discovered the call() method
Currently if you want to write a parser that can contain itself, as far as I can tell, you can't. eg.
This fails with "thread 'main' has overflowed its stack".