Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
cfa70225
Commit
cfa70225
authored
May 05, 2016
by
POTTIER Francois
Browse files
Correct indentation in unparameterizedPrinter.
parent
dfa5db39
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/unparameterizedPrinter.ml
View file @
cfa70225
...
...
@@ -189,7 +189,9 @@ let print_rules mode b g =
let
first
=
ref
true
in
List
.
iter
(
fun
br
->
(* Menhir accepts a leading "|", but bison does not. Let's not print it. *)
if
!
first
then
first
:=
false
else
Printf
.
fprintf
b
"| "
;
let
sep
=
if
!
first
then
" "
else
"| "
in
first
:=
false
;
Printf
.
fprintf
b
"%s"
sep
;
print_branch
mode
b
br
)
r
.
branches
)
ordered_rules
...
...
@@ -215,4 +217,3 @@ let print mode f g =
|
PrintUnitActionsUnitTokens
->
()
end
Write
Preview
Supports
Markdown
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