Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
POTTIER Francois
menhir
Commits
e49e84e8
Commit
e49e84e8
authored
Nov 10, 2015
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated comments.
parent
b277b7f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
src/grammar.ml
src/grammar.ml
+11
-2
src/grammar.mli
src/grammar.mli
+3
-3
No files found.
src/grammar.ml
View file @
e49e84e8
...
...
@@ -37,8 +37,9 @@ module TokPrecedence = struct
in
levelip
id
properties
(* This function is invoked after the automaton has been constructed.
It warns about unused precedence levels. *)
(* This function prints warnings about useless precedence declarations
for terminal symbols (%left, %right, %nonassoc). It should be invoked
after only the automaton has been constructed. *)
let
diagnostics
()
=
StringMap
.
iter
(
fun
id
properties
->
...
...
@@ -730,6 +731,10 @@ module Production = struct
)
,
osym
(* This function prints warnings about useless precedence declarations for
productions (%prec). It should be invoked after only the automaton has
been constructed. *)
let
diagnostics
()
=
iterx
(
fun
prod
->
let
osym
=
prec_decl
.
(
prod
)
in
...
...
@@ -1518,6 +1523,10 @@ module Precedence = struct
end
(* This function prints warnings about useless precedence declarations for
terminal symbols (%left, %right, %nonassoc) and productions (%prec). It
should be invoked after only the automaton has been constructed. *)
let
diagnostics
()
=
TokPrecedence
.
diagnostics
()
;
Production
.
diagnostics
()
...
...
src/grammar.mli
View file @
e49e84e8
...
...
@@ -499,9 +499,9 @@ end
(* ------------------------------------------------------------------------ *)
(* Diagnostics. *)
(* This function prints
diagnostics about
precedence declarations
that
are never consulted. It is called after the automaton is
constructed. *)
(* This function prints
warnings about useless
precedence declarations
for
terminal symbols (%left, %right, %nonassoc) and productions (%prec). It
should be invoked after only the automaton has been
constructed. *)
val
diagnostics
:
unit
->
unit
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