I have tried using a Grammar<AST> but I have a couple of Lexemes that may fail.
I have tries using a Grammar<Result<AST, Error>> but that complicates things dramatically ?
The parser now returns wrapped results.
Is there a proper way to handle errors while parsing?
I have tried using a
Grammar<AST>
but I have a couple of Lexemes that may fail.I have tries using a
Grammar<Result<AST, Error>>
but that complicates things dramatically ? The parser now returns wrapped results. Is there a proper way to handle errors while parsing?