Changeset 2365


Ignore:
Timestamp:
Sep 14, 2012, 7:50:35 PM (7 years ago)
Author:
ksherdy
Message:

Updated Pablo test cases.

Location:
proto/pablo/input/test
Files:
5 added
7 deleted
2 edited
5 moved

Legend:

Unmodified
Added
Removed
  • proto/pablo/input/test/func1.pablo

    r2363 r2365  
    77function tuple T Foo(stream a, idType b) {};
    88
    9 function typeAlias Foo() {};
     9function void Foo() {};
  • proto/pablo/input/test/pablo/statements/while/while1.pablo

    r2361 r2365  
    1 function void Function(struct TagCallouts tagCallouts, struct Lex lex) {       
     1function void While() {
    22       
    33        while (cursor) {
    4                 cursor = pablo.Advance(cursor,1);
     4                cursor = pablo.Advance(cursor);
    55                cursor = cursor &~ terminator;
    66        }
  • proto/pablo/input/test/pablo/statements/while/while2.pablo.ex

    r2361 r2365  
    11function void Function(struct TagCallouts tagCallouts, struct Lex lex) {       
    22
    3         starts_accum = 0;
    4         ends_accum = 0;
     3        var stream starts_accum = 0;
     4        var stream ends_accum = 0;     
    55       
    6         cursor = pablo.ScanToFirst(lex.opener);
     6        var stream cursor = pablo.ScanToFirst(lex.opener);
    77       
    88        while (cursor) {
  • proto/pablo/input/test/test.pablo

    r2363 r2365  
     1typedef stream<1> s;
     2
    13function void PostfixExpressions() {
    2         temp4 = functionCall();
    3         temp4 = functionCall(a,0);
    4         temp4 = functionCall("string");
    5         temp4 = library.functionCall();
    6         temp4 = path.to.functionCall();
     4
     5        var stream<1> a;
     6
     7        var stream<1> a,b,c = 0;
     8
     9        functionCall();
     10
     11        a.b.functionCall();
    712       
     13        a = functionCall();
    814       
    9         functionCall();
    10         path.to.functionCall(a,b);     
     15        b = functionCall();
    1116       
    12         A = 0;
    13        
    14         stream a = 0;
    1517};
Note: See TracChangeset for help on using the changeset viewer.