Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
menhir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
POTTIER Francois
menhir
Commits
e49e84e8
Commit
e49e84e8
authored
9 years ago
by
POTTIER Francois
Browse files
Options
Downloads
Patches
Plain Diff
Updated comments.
parent
b277b7f8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/grammar.ml
+11
-2
11 additions, 2 deletions
src/grammar.ml
src/grammar.mli
+3
-3
3 additions, 3 deletions
src/grammar.mli
with
14 additions
and
5 deletions
src/grammar.ml
+
11
−
2
View file @
e49e84e8
...
@@ -37,8 +37,9 @@ module TokPrecedence = struct
...
@@ -37,8 +37,9 @@ module TokPrecedence = struct
in
in
levelip
id
properties
levelip
id
properties
(* This function is invoked after the automaton has been constructed.
(* This function prints warnings about useless precedence declarations
It warns about unused precedence levels. *)
for terminal symbols (%left, %right, %nonassoc). It should be invoked
after only the automaton has been constructed. *)
let
diagnostics
()
=
let
diagnostics
()
=
StringMap
.
iter
(
fun
id
properties
->
StringMap
.
iter
(
fun
id
properties
->
...
@@ -730,6 +731,10 @@ module Production = struct
...
@@ -730,6 +731,10 @@ module Production = struct
)
,
)
,
osym
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
()
=
let
diagnostics
()
=
iterx
(
fun
prod
->
iterx
(
fun
prod
->
let
osym
=
prec_decl
.
(
prod
)
in
let
osym
=
prec_decl
.
(
prod
)
in
...
@@ -1518,6 +1523,10 @@ module Precedence = struct
...
@@ -1518,6 +1523,10 @@ module Precedence = struct
end
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
()
=
let
diagnostics
()
=
TokPrecedence
.
diagnostics
()
;
TokPrecedence
.
diagnostics
()
;
Production
.
diagnostics
()
Production
.
diagnostics
()
...
...
This diff is collapsed.
Click to expand it.
src/grammar.mli
+
3
−
3
View file @
e49e84e8
...
@@ -499,9 +499,9 @@ end
...
@@ -499,9 +499,9 @@ end
(* ------------------------------------------------------------------------ *)
(* ------------------------------------------------------------------------ *)
(* Diagnostics. *)
(* Diagnostics. *)
(* This function prints
diagnostics about
precedence declarations
that
(* This function prints
warnings about useless
precedence declarations
for
are never consulted. It is called after the automaton is
terminal symbols (%left, %right, %nonassoc) and productions (%prec). It
constructed. *)
should be invoked after only the automaton has been
constructed. *)
val
diagnostics
:
unit
->
unit
val
diagnostics
:
unit
->
unit
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment