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
e3ba88ea
Commit
e3ba88ea
authored
Jan 07, 2015
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-implemented the user-visible [lhs] function using the [lhs] table,
composed with the function [nonterminal].
parent
7e37ed9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/tableFormat.ml
src/tableFormat.ml
+3
-0
src/tableInterpreter.ml
src/tableInterpreter.ml
+2
-2
No files found.
src/tableFormat.ml
View file @
e3ba88ea
...
...
@@ -129,6 +129,9 @@ module type INSPECTION_TABLES = sig
val
lhs
:
PackedIntArray
.
t
val
terminal
:
int
->
xsymbol
val
nonterminal
:
int
->
xsymbol
(* A mapping of every (non-initial) state to its incoming symbol. *)
val
symbol
:
'
a
lr1state
->
'
a
symbol
...
...
src/tableInterpreter.ml
View file @
e3ba88ea
...
...
@@ -184,8 +184,8 @@ module MakeInspection (T : TableFormat.INSPECTION_TABLES) = struct
data
let
lhs
prod
=
let
lhs
,
_
=
production_def
prod
in
lhs
let
nt
=
PackedIntArray
.
get
T
.
lhs
prod
in
T
.
nonterminal
nt
let
rhs
prod
=
let
_
,
rhs
=
production_def
prod
in
...
...
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