Newer
Older
zweic / tests / 2 / Test3.zwei
@glproj03 glproj03 on 24 Nov 2005 727 bytes
//Fun with Expressions, Statements and Factors
//this file should be correct
class FunTest {

        formal formal() {

                ident.ident.ident.ident;
                //ident.new ident().34."valais rulez".true.this.{hello;}.bla();
                printInt({});
                printChar(!"a");

                while ({}) {}
                while (("da da da")) {this.dududu == true;}
                while (34.da) {{};}

                if ( expr ) expr else expr;

                exrp  == expr;
                expr == term --factor * ! factor;

                {} == ({});
                {} && {} <= {};

                {}.bla();
                {{};} * new bla ({return {return bla}});   
        }

}

test