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
c969fded
Commit
c969fded
authored
Jul 07, 2015
by
POTTIER Francois
Browse files
Use [TerminalSet.is_singleton] in [Lr0.eos_compatible].
parent
ff91b958
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lr0.ml
View file @
c969fded
...
...
@@ -475,10 +475,10 @@ let eos_compatible (k1, toksr1) (k2, toksr2) =
let
toks1
=
toksr1
.
(
i
)
and
toks2
=
toksr2
.
(
i
)
in
begin
if
TerminalSet
.
mem
Terminal
.
sharp
toks1
&&
TerminalSet
.
cardinal
toks1
=
1
then
if
TerminalSet
.
mem
Terminal
.
sharp
toks1
&&
TerminalSet
.
is_singleton
toks1
then
(* "#" is alone in one set: it must be a member of the other set. *)
TerminalSet
.
mem
Terminal
.
sharp
toks2
else
if
TerminalSet
.
mem
Terminal
.
sharp
toks2
&&
TerminalSet
.
cardinal
toks2
=
1
then
else
if
TerminalSet
.
mem
Terminal
.
sharp
toks2
&&
TerminalSet
.
is_singleton
toks2
then
(* Symmetric condition. *)
TerminalSet
.
mem
Terminal
.
sharp
toks1
else
...
...
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