python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Understand potential conflicts
I have a small parser of expression built by Menhir. I'm trying to recover parenthesis-incomplete expressions during parsing by writing recovery grammars in parser.mly:
%{
open AST
%}
%token<i...
SoftTimur
Votes: 0
Answers: 1
Manually tweak env/stack/semantic value to achieve an error recovery
I'm trying to implement error recovery in this version of the project (make followed by ./parse e1.input to test).
Given (1 in e1.input, I would like the parser to act as if it parsed ) and build an A...
SoftTimur
Votes: 0
Answers: 1
Unexpected character for stdin
I'm tying --interpret-error and interpret of menhir.
For this sample, I typed menhir --interpret-error parser.mly or menhir --interpret parser.mly in the command line, then for any expression I entere...
SoftTimur
Votes: 0
Answers: 0