source: tests/zombies/context.cfa @ fd54fef

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since fd54fef was fd54fef, checked in by Michael Brooks <mlbrooks@…>, 3 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: 247 bytes
RevLine 
[a0dcd2e]1// trait declaration
[21eb693]2
[fd54fef]3trait has_q( T ) {
[62edde5]4        T q( T );
5};
6
[fd54fef]7forall( z | has_q( z ) ) void f() {
8        trait has_r( T, U ) {
[62edde5]9                T r( T, T (T,U) );
10        };
11
12        extern otype x, y | has_r( x, y );
13}
14
15//Dummy main
16int main(int argc, char const *argv[])
17{
18        return 0;
19}
Note: See TracBrowser for help on using the repository browser.