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
6d042ffd
Commit
6d042ffd
authored
17 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
syntaxTreeCore.ml:
turns eq_info into a pair (instead of a struct).
parent
8c0145c8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/parser.mly
+1
-1
1 addition, 1 deletion
src/parser.mly
src/syntaxTreeCore.ml
+3
-5
3 additions, 5 deletions
src/syntaxTreeCore.ml
src/syntaxTreeDump.ml
+2
-2
2 additions, 2 deletions
src/syntaxTreeDump.ml
with
6 additions
and
8 deletions
src/parser.mly
+
1
−
1
View file @
6d042ffd
...
@@ -966,7 +966,7 @@ sxEquation: TK_ASSERT sxExpression TK_SEMICOL
...
@@ -966,7 +966,7 @@ sxEquation: TK_ASSERT sxExpression TK_SEMICOL
}
}
|
sxLeft
TK_EQ
sxExpression
TK_SEMICOL
|
sxLeft
TK_EQ
sxExpression
TK_SEMICOL
{
{
(
[]
,
[
{
src
=
$
2
;
it
=
{
eq_left
=
$
1
;
eq_right
=
$
3
}
}
]
)
(
[]
,
[
{
src
=
$
2
;
it
=
(
$
1
,
$
3
)
}
]
)
}
}
;
;
...
...
This diff is collapsed.
Click to expand it.
src/syntaxTreeCore.ml
+
3
−
5
View file @
6d042ffd
(** Time-stamp: <modified the 07/02/2008 (at 11:
27
) by Erwan Jahier> *)
(** Time-stamp: <modified the 07/02/2008 (at 11:
31
) by Erwan Jahier> *)
(** (Raw) Abstract syntax tree of source programs. *)
(** (Raw) Abstract syntax tree of source programs. *)
...
@@ -84,10 +84,8 @@ and var_nature =
...
@@ -84,10 +84,8 @@ and var_nature =
|
VarOutput
|
VarOutput
|
VarLocal
|
VarLocal
and
eq_info
=
{
and
eq_info
=
(
left_part
list
*
val_exp
)
eq_left
:
left_part
list
;
eq_right
:
val_exp
}
and
left_part
=
and
left_part
=
|
LeftVar
of
(
Ident
.
t
srcflagged
)
|
LeftVar
of
(
Ident
.
t
srcflagged
)
|
LeftField
of
(
left_part
*
(
Ident
.
t
srcflagged
))
|
LeftField
of
(
left_part
*
(
Ident
.
t
srcflagged
))
...
...
This diff is collapsed.
Click to expand it.
src/syntaxTreeDump.ml
+
2
−
2
View file @
6d042ffd
(** Time-stamp: <modified the 07/02/2008 (at 11:
25
) by Erwan Jahier> *)
(** Time-stamp: <modified the 07/02/2008 (at 11:
31
) by Erwan Jahier> *)
open
Lxm
open
Lxm
...
@@ -350,7 +350,7 @@ and dump_assert_list (os: Format.formatter) (af: (val_exp srcflagged) list) = (
...
@@ -350,7 +350,7 @@ and dump_assert_list (os: Format.formatter) (af: (val_exp srcflagged) list) = (
and
dump_eq_list
(
os
:
Format
.
formatter
)
(
eqfs
:
(
eq_info
srcflagged
)
list
)
=
(
and
dump_eq_list
(
os
:
Format
.
formatter
)
(
eqfs
:
(
eq_info
srcflagged
)
list
)
=
(
match
eqfs
with
match
eqfs
with
[]
->
()
[]
->
()
|
{
it
=
{
eq_left
=
lflst
;
eq_right
=
exp
}
;
src
=
lxm
}
::
reste
->
(
|
{
it
=
(
lflst
,
exp
)
;
src
=
lxm
}
::
reste
->
(
Format
.
fprintf
os
"@
\n
%a = %a;%a"
Format
.
fprintf
os
"@
\n
%a = %a;%a"
dump_left_part_list
lflst
dump_left_part_list
lflst
dump_val_exp
exp
dump_val_exp
exp
...
...
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