Last change
on this file since 5f210c0 was
fd54fef,
checked in by Michael Brooks <mlbrooks@…>, 4 years ago
|
Converting the project to use the new syntax for otype, dtype and ttytpe.
Changed prelude (gen), libcfa and test suite to use it. Added a simple deprecation rule of the old syntax to the parser; we might wish to support both syntaxes "officially," like with an extra CLI switch, but this measure should serve as a simple reminder for our team to try the new syntax.
|
-
Property mode set to
100644
|
File size:
304 bytes
|
Line | |
---|
1 | // Trac ticket |
---|
2 | // https://cforall.uwaterloo.ca/trac/ticket/196 |
---|
3 | |
---|
4 | forall(T &) |
---|
5 | struct link; |
---|
6 | |
---|
7 | forall(T &) |
---|
8 | struct link { |
---|
9 | link(T) * next; |
---|
10 | }; |
---|
11 | |
---|
12 | // ----- |
---|
13 | |
---|
14 | forall(T &) |
---|
15 | struct foo; |
---|
16 | |
---|
17 | forall(U &) |
---|
18 | struct bar { |
---|
19 | foo(U) * data; |
---|
20 | }; |
---|
21 | |
---|
22 | forall(T &) |
---|
23 | struct foo {}; |
---|
24 | |
---|
25 | // ----- |
---|
26 | |
---|
27 | int main(int argc, char * argv[]) { |
---|
28 | return 0; |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.