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
cba1eba2
Commit
cba1eba2
authored
Jan 08, 2015
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment and TODO item.
parent
3609c13c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
TODO
TODO
+3
-0
src/lr0.ml
src/lr0.ml
+1
-1
src/lr1.ml
src/lr1.ml
+6
-0
No files found.
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