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
023c9e44
Commit
023c9e44
authored
16 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
(bis) Add a little bit more parenthesis in the generated lic code in order
to avoid priority errors.
parent
0d3ba62e
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/compiledDataDump.ml
+4
-3
4 additions, 3 deletions
src/compiledDataDump.ml
src/test/test.res.exp
+620
-605
620 additions, 605 deletions
src/test/test.res.exp
with
624 additions
and
608 deletions
src/compiledDataDump.ml
+
4
−
3
View file @
023c9e44
(** Time-stamp: <modified the 08/07/2008 (at 10:
16
) by Erwan Jahier> *)
(** Time-stamp: <modified the 08/07/2008 (at 10:
37
) by Erwan Jahier> *)
(* Call it LicDump? *)
(* Call it LicDump? *)
...
@@ -211,6 +211,7 @@ and (string_of_leff_list : left_eff list -> string) =
...
@@ -211,6 +211,7 @@ and (string_of_leff_list : left_eff list -> string) =
and
(
string_of_by_pos_op_eff
:
by_pos_op_eff
->
val_exp_eff
list
->
string
)
=
and
(
string_of_by_pos_op_eff
:
by_pos_op_eff
->
val_exp_eff
list
->
string
)
=
fun
posop
vel
->
fun
posop
vel
->
let
tuple
vel
=
(
String
.
concat
", "
(
List
.
map
string_of_val_exp_eff
vel
))
in
let
tuple
vel
=
(
String
.
concat
", "
(
List
.
map
string_of_val_exp_eff
vel
))
in
let
tuple_par
vel
=
"("
^
(
tuple
vel
)
^
")"
in
let
tuple_square
vel
=
let
tuple_square
vel
=
"["
^
(
String
.
concat
", "
(
List
.
map
string_of_val_exp_eff
vel
))
^
"]"
"["
^
(
String
.
concat
", "
(
List
.
map
string_of_val_exp_eff
vel
))
^
"]"
in
in
...
@@ -237,10 +238,10 @@ and (string_of_by_pos_op_eff : by_pos_op_eff -> val_exp_eff list -> string) =
...
@@ -237,10 +238,10 @@ and (string_of_by_pos_op_eff : by_pos_op_eff -> val_exp_eff list -> string) =
|
CALL_eff
nee
,
_
->
(
|
CALL_eff
nee
,
_
->
(
if
nee
.
it
.
def_eff
=
ExternEff
then
if
nee
.
it
.
def_eff
=
ExternEff
then
((
string_of_node_key_iter
nee
.
it
.
node_key_eff
)
^
(
tuple
vel
))
((
string_of_node_key_iter
nee
.
it
.
node_key_eff
)
^
(
tuple
_par
vel
))
else
else
(* recursive node cannot be extern *)
(* recursive node cannot be extern *)
((
string_of_node_key_rec
nee
.
it
.
node_key_eff
)
^
(
tuple
vel
))
((
string_of_node_key_rec
nee
.
it
.
node_key_eff
)
^
(
tuple
_par
vel
))
)
)
|
IDENT_eff
idref
,
_
->
Ident
.
string_of_idref
idref
|
IDENT_eff
idref
,
_
->
Ident
.
string_of_idref
idref
|
PRE_eff
,
_
->
"pre "
^
(
tuple
vel
)
|
PRE_eff
,
_
->
"pre "
^
(
tuple
vel
)
...
...
This diff is collapsed.
Click to expand it.
src/test/test.res.exp
+
620
−
605
View file @
023c9e44
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