Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
menhir
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
menhir
Commits
35b593df
Commit
35b593df
authored
Aug 29, 2015
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments.
parent
981e2823
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/ErrorReporting.ml
src/ErrorReporting.ml
+5
-2
No files found.
src/ErrorReporting.ml
View file @
35b593df
...
...
@@ -53,7 +53,7 @@ module Make
match
Lazy
.
force
(
stack
env
)
with
|
Nil
->
(* If we get here, then the stack is empty, which means the parser
is an initial state. This should not happen. *)
is
in
an initial state. This should not happen. *)
invalid_arg
"items_current"
(* TEMPORARY it DOES happen! *)
|
Cons
(
Element
(
current
,
_
,
_
,
_
)
,
_
)
->
(* Extract the current state out of the top stack element, and
...
...
@@ -154,7 +154,7 @@ module Make
important because the position of the dummy token may end up in
the explanations that we produce. *)
let
investigate
pos
(
result
:
_
result
)
=
let
investigate
pos
(
result
:
_
result
)
:
explanation
list
=
weed
compare_explanations
(
foreach_terminal_but_error
(
fun
symbol
explanations
->
match
symbol
with
...
...
@@ -227,4 +227,7 @@ module Make
assert
(
match
start
with
InputNeeded
_
->
true
|
_
->
false
);
loop
(
wrap
lexer
lexbuf
)
{
checkpoint
=
start
;
current
=
start
}
(* TEMPORARY could also publish a list of the terminal symbols that
do not cause an error *)
end
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