Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
b565c874
Commit
b565c874
authored
Dec 02, 2014
by
POTTIER Francois
Browse files
Removed a check that has become useless since fancy-parser
no longer uses [Error.signal].
parent
586c30ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/preFront.ml
View file @
b565c874
...
...
@@ -57,17 +57,7 @@ let load_partial_grammar filename =
{
(
Parser
.
grammar
Lexer
.
main
lexbuf
)
with
ConcreteSyntax
.
pg_filename
=
filename
}
in
Error
.
file_contents
:=
None
;
(* If there were errors during parsing, stop. This has to be done
explicitly here because the parser performs error recovery and
does not die at the first error. One could even go further and
attempt to work with the grammar in spite of the parse errors,
but we choose not to. *)
if
Error
.
errors
()
then
exit
1
else
grammar
grammar
with
Sys_error
msg
->
Error
.
error
[]
msg
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment