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
d152f19f
Commit
d152f19f
authored
Nov 10, 2015
by
POTTIER Francois
Browse files
Turned [Grammar] into an application of [GrammarFunctor].
parent
88ae18b6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/grammar.ml
View file @
d152f19f
This diff is collapsed.
Click to expand it.
src/grammarFunctor.ml
0 → 100644
View file @
d152f19f
This diff is collapsed.
Click to expand it.
src/grammar.mli
→
src/grammar
Functor
.mli
View file @
d152f19f
(* This module transforms [Front.grammar], an abstract syntax tree for
the grammar, into an internal representation of the grammar that is
more usable. *)
(* The functor [Make] transforms an abstract syntax tree for the grammar into a
rich internal representation of the grammar. *)
(* The reason why this is now a functor, and the reason why its verbosity can
be controlled, is that we may wish to invoke it several times, e.g. on the
grammar before %inlining, and on the grammar after %inlining. 2015/11/10 *)
module
Make
(
G
:
sig
(* An abstract syntax tree for the grammar. *)
val
grammar
:
UnparameterizedSyntax
.
grammar
(* This flag indicates whether it is OK to produce warnings, verbose
information, etc., when this functor is invoked. If it is set to
[false], then only serious errors can be signaled. *)
val
verbose
:
bool
end
)
:
sig
(* ------------------------------------------------------------------------ *)
(* Nonterminals. *)
...
...
@@ -512,3 +527,8 @@ end
val
diagnostics
:
unit
->
unit
(* ------------------------------------------------------------------------ *)
end
(* module Make *)
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