Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
94cf0fc5
Commit
94cf0fc5
authored
7 years ago
by
Pierre Loic Garoche
Browse files
Options
Downloads
Patches
Plain Diff
[main] cleaned superfluous empty line in generated lustre output
parent
13aec2da
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/printers.ml
+8
-8
8 additions, 8 deletions
src/printers.ml
with
8 additions
and
8 deletions
src/printers.ml
+
8
−
8
View file @
94cf0fc5
...
...
@@ -251,10 +251,10 @@ and pp_node_aut fmt aut =
and
pp_node_eqs
fmt
eqs
=
fprintf_list
~
sep
:
"@ "
pp_node_eq
fmt
eqs
let
pp_typedef
fmt
ty
=
fprintf
fmt
"type %s = %a;
@
"
ty
.
tydef_id
pp_var_type_dec_desc
ty
.
tydef_desc
fprintf
fmt
"type %s = %a;"
ty
.
tydef_id
pp_var_type_dec_desc
ty
.
tydef_desc
let
pp_typedec
fmt
ty
=
fprintf
fmt
"type %s;
@
"
ty
.
tydec_id
fprintf
fmt
"type %s;"
ty
.
tydec_id
(* let rec pp_var_type fmt ty = *)
(* fprintf fmt "%a" (match ty.tdesc with *)
...
...
@@ -324,12 +324,12 @@ let pp_const_decl_list fmt clist =
let
pp_decl
fmt
decl
=
match
decl
.
top_decl_desc
with
|
Node
nd
->
fprintf
fmt
"%a
@
"
pp_node
nd
|
Node
nd
->
fprintf
fmt
"%a"
pp_node
nd
|
ImportedNode
ind
->
fprintf
fmt
"imported %a;
@
"
pp_imported_node
ind
|
Const
c
->
fprintf
fmt
"const %a
@
"
pp_const_decl
c
|
Open
(
local
,
s
)
->
if
local
then
fprintf
fmt
"#open
\"
%s
\"
@
"
s
else
fprintf
fmt
"#open <%s>
@
"
s
|
TypeDef
tdef
->
fprintf
fmt
"%a
@
"
pp_typedef
tdef
fprintf
fmt
"imported %a;"
pp_imported_node
ind
|
Const
c
->
fprintf
fmt
"const %a"
pp_const_decl
c
|
Open
(
local
,
s
)
->
if
local
then
fprintf
fmt
"#open
\"
%s
\"
"
s
else
fprintf
fmt
"#open <%s>"
s
|
TypeDef
tdef
->
fprintf
fmt
"%a"
pp_typedef
tdef
let
pp_prog
fmt
prog
=
(* we first print types: the function SortProg.sort could do the job but ut
...
...
@@ -337,7 +337,7 @@ let pp_prog fmt prog =
let
type_decl
,
others
=
List
.
partition
(
fun
decl
->
match
decl
.
top_decl_desc
with
TypeDef
_
->
true
|
_
->
false
)
prog
in
fprintf_list
~
sep
:
"@ "
pp_decl
fmt
(
type_decl
@
others
)
fprintf
fmt
"@[<v 0>%a@]"
(
fprintf
_list
~
sep
:
"@ "
pp_decl
)
(
type_decl
@
others
)
let
pp_short_decl
fmt
decl
=
match
decl
.
top_decl_desc
with
...
...
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