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
a86834b3
Commit
a86834b3
authored
Dec 27, 2014
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed [tokenprefix] to [tokendata], with a slightly more abstract spec.
parent
8646c2d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
src/tokenType.ml
src/tokenType.ml
+3
-0
src/tokenType.mli
src/tokenType.mli
+6
-5
No files found.
src/tokenType.ml
View file @
a86834b3
...
...
@@ -180,6 +180,9 @@ let tctoken =
let
ttoken
=
TypApp
(
tctoken
,
[]
)
let
tokendata
=
tokenprefix
let
tctokengadt
=
tokenprefix
tctokengadt
...
...
src/tokenType.mli
View file @
a86834b3
...
...
@@ -20,6 +20,12 @@
val
ttoken
:
IL
.
typ
(* [tokendata] maps the name of a token to a data constructor of the [token]
type. (If [--external-tokens] is set, then it prefixes its argument with an
appropriate OCaml module name. Otherwise, it is the identity.) *)
val
tokendata
:
string
->
string
(* This is the conventional name of the [terminal] type, a.k.a. the token
GADT. This is an indexed type (i.e., it has one type parameter). Its data
constructors carry zero value arguments. If [--external-tokens] is set,
...
...
@@ -27,11 +33,6 @@ val ttoken: IL.typ
val
ttokengadt
:
IL
.
typ
->
IL
.
typ
(* If [--external-tokens] is set, then [tokenprefix] prefixes its argument
with an appropriate OCaml module name. Otherwise, it is the identity. *)
val
tokenprefix
:
string
->
string
(* These are the definitions of the types of tokens, for use by the code
generators. This can be a list of zero, one, or two types. Indeed, this
list is empty when [--external-tokens] is set. Otherwise, it contains just
...
...
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