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
cba1eba2
Commit
cba1eba2
authored
Jan 08, 2015
by
POTTIER Francois
Browse files
Comment and TODO item.
parent
3609c13c
Changes
3
Show whitespace changes
Inline
Side-by-side
TODO
View file @
cba1eba2
* Clean up Lr1.incoming_symbol by going through Lr0.
* Possibly re-implement the function [symbol] using a packed
int array (going through [terminal] or [nonterminal] later).
Also, go through lr0 core first.
* Generate default printers for terminal and nonterminal.
Define printers for productions and items, parameterized
...
...
src/lr0.ml
View file @
cba1eba2
...
...
@@ -142,7 +142,7 @@ let rec explore (symbol : Symbol.t option) (state : Item.Set.t) : node =
(* Find out whether this state was already explored. *)
try
Hashtbl
.
find
map
state
in
Hashtbl
.
find
map
state
with
Not_found
->
(* If not, create a new node. *)
...
...
src/lr1.ml
View file @
cba1eba2
...
...
@@ -845,6 +845,12 @@ let conflicts f =
)
conflict_nodes
let
incoming_symbol
node
=
(* Instead of reading [node.incoming_symbol], we could return
[Lr0.incoming_symbol (Lr0.core node.state)].
We could then get rid of the field [node.incoming_symbol].
However, this field is also used in the construction of the
table [incoming], so we would have to change the code that
builds this table. TEMPORARY do it! *)
node
.
incoming_symbol
let
predecessors
node
=
...
...
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