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
a32dfa31
Commit
a32dfa31
authored
12 years ago
by
Pascal Raymond
Browse files
Options
Downloads
Patches
Plain Diff
pas grand chose
parent
280b187a
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ALIRE
+15
-1
15 additions, 1 deletion
ALIRE
ALIRE.compil-des-nodes
+14
-0
14 additions, 0 deletions
ALIRE.compil-des-nodes
moretests/test.res.exp
+26
-6
26 additions, 6 deletions
moretests/test.res.exp
overload.lus
+3
-7
3 additions, 7 deletions
overload.lus
with
58 additions
and
14 deletions
ALIRE
+
15
−
1
View file @
a32dfa31
...
...
@@ -23,7 +23,21 @@ En cours :
ETAT COURANT
19/07
-----------------------------------------------------------
12/07/09
--> Les expressions de noeud qui s'avèrent polymorphes et/ou
surchargés, sont :
- acceptées dans les val_exp, à condition que l'utilisation
lève l'ambiguité
- refusées dans les "node alias"
= PLUS TARD : il faudrait que les noeuds qui s'avèrent polymorphes
et/ou surchargés soient traités comme de MACROS avec un STATIG ARG
de nature TYPE implicite
-----------------------------------------------------------
12/07/05
- completement séparé la compil de l'affichage, du coup
on a débranché l'ancien source_to_source
...
...
This diff is collapsed.
Click to expand it.
ALIRE.compil-des-nodes
0 → 100644
+
14
−
0
View file @
a32dfa31
compile_all ->
compile_all_nodes ->
compile_all_item node_check_interface ->
node_check_interface:cache on ->
node_check_interface_do
node_check
node_check_do
This diff is collapsed.
Click to expand it.
moretests/test.res.exp
+
26
−
6
View file @
a32dfa31
...
...
@@ -54,20 +54,40 @@ where [options] can be:
Display this message.
----------------------------------------------------------------------
====> ../obj/lus2lic -vl 2 --nonreg-test should_work/aliases/alias.lus
-- ../obj/lus2lic -vl 2 --nonreg-test should_work/aliases/alias.lus
====> ../objlinux/lus2lic -vl 2 --nonreg-test should_work/aliases/alias.lus
-- ../objlinux/lus2lic -vl 2 --nonreg-test should_work/aliases/alias.lus
type bool_4 = bool^4 (*abstract in the source*);
type bool_4_5 = bool_4^5 (*abstract in the source*);
type alias::a = int^42;
type alias::bool_4;
type alias::bool_4a;
type alias::bool_4b;
type alias::bool_4c = bool^4 (*abstract in the source*);
type alias::bool_4c_5 = alias::bool_4c^5 (*abstract in the source*);
type alias::str = struct {foo : alias::t_42_9; bar : alias::bool_4c_5};
type alias::str = struct {foo : alias::t_42_9; bar : bool_4_5};
type alias::t = enum {alias::Bleu, alias::Blanc};
type alias::t1 =
alias::
bool_4
c
^5;
type alias::t1 = bool_4^5;
type alias::t_42 = alias::t^42 (*abstract in the source*);
type alias::t_42_9 = alias::t_42^9 (*abstract in the source*);
const alias::c2 : alias::t;
const alias::huit = 9;
const alias::toto = 42;
----------------------------------------------------------------------
====> ../objlinux/lus2lic -vl 2 --nonreg-test should_work/aliases/ex.lus
-- ../objlinux/lus2lic -vl 2 --nonreg-test should_work/aliases/ex.lus
type bool_11 = bool^11 (*abstract in the source*);
type bool_11_22 = bool_11^22 (*abstract in the source*);
type int_1 = int^1 (*abstract in the source*);
type int_1_2 = int_1^2 (*abstract in the source*);
type int_1_2_3 = int_1_2^3 (*abstract in the source*);
type int_1_2_3_4 = int_1_2_3^4 (*abstract in the source*);
type ex::s = struct {x : int_1_2_3_4; y : ex::s1};
type ex::s1 = struct {x : int; y : int_1_2_3_4};
type ex::t = int_1_2_3^4;
type ex::t1 = int_1_2_3_4^4;
type ex::t2 = struct {a : int; b : bool_11_22};
node ex::ex(a:ex::s) returns (b:int);
let
b = a.x[0][0][0][0] + a.y.y[0][0][0][0];
tel
-- end of node ex::ex
Those tests are supposed to generate errors
This diff is collapsed.
Click to expand it.
map2
.lus
→
overload
.lus
+
3
−
7
View file @
a32dfa31
node
titi
=
map
<<+,
4
>>
;
node
toto
(
x
,
y
:
int
^
4
)
returns
(
o
:
int
^
4
);
let
(* o = map<<+, 4>>(x,y); *)
o
=
titi
(
x
,
y
);
tel
let
o
=
titi
(
x
,
y
);
tel
node
tutu
(
x
,
y
:
real
^
4
)
returns
(
o
:
real
^
4
);
let
o
=
titi
(
x
,
y
);
tel
let
o
=
titi
(
x
,
y
);
tel
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