Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-v6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
verimag
synchrone
lustre-v6
Commits
4f7b85a5
Commit
4f7b85a5
authored
16 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
In the List printer, do not put the struct field default value in
parenthesis, but after an equal sign, as in lv6.
parent
cac61d9d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/compiledDataDump.ml
+2
-2
2 additions, 2 deletions
src/compiledDataDump.ml
src/test/test.res.exp
+1
-1
1 addition, 1 deletion
src/test/test.res.exp
with
3 additions
and
3 deletions
src/compiledDataDump.ml
+
2
−
2
View file @
4f7b85a5
(** Time-stamp: <modified the 04/07/2008 (at 1
7:2
5) by Erwan Jahier> *)
(** Time-stamp: <modified the 04/07/2008 (at 1
8:0
5) by Erwan Jahier> *)
(* Call it LicDump? *)
...
...
@@ -60,7 +60,7 @@ and string_def_of_type_eff = function
(
string_of_type_eff
type_eff
)
^
match
const_eff_opt
with
None
->
""
|
Some
ce
->
"
(
"
^
(
string_of_const_eff
ce
)
^
")"
|
Some
ce
->
"
=
"
^
(
string_of_const_eff
ce
)
in
"struct "
^
(
List
.
fold_left
(
f
"; "
)
(
f
""
" {"
(
List
.
hd
fl
))
(
List
.
tl
fl
))
^
"}"
...
...
This diff is collapsed.
Click to expand it.
src/test/test.res.exp
+
1
−
1
View file @
4f7b85a5
...
...
@@ -3692,7 +3692,7 @@ Opening file /home/jahier/lus2lic/src/test/should_work/Pascal/pfs.lus
----------------------------------------------------------------------
====> ../lus2lic -vl 2 --compile-all-items should_work/Pascal/struct0.lus
Opening file /home/jahier/lus2lic/src/test/should_work/Pascal/struct0.lus
type _struct0::Toto = struct {x : int
(1)
; y : int
(2)
};
type _struct0::Toto = struct {x : int
= 1
; y : int
= 2
};
node struct0::bibi(dummy:int) returns (z:_struct0::Toto);
let
z = Toto{x=3};
...
...
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