From: Bernhard Urban Date: Sat, 20 Mar 2010 18:46:27 +0000 (+0100) Subject: parser: testfaelle spass... X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=uebersetzerbau-ss10.git;a=commitdiff_plain;h=38610c8e76aa80bf5861a5e1d4d0cfa9947e5b1a parser: testfaelle spass... --- diff --git a/test/parser/a.0 b/test/parser/a.0 index 2d5724a..50185ad 100644 --- a/test/parser/a.0 +++ b/test/parser/a.0 @@ -1,10 +1,13 @@ -struct mystruct end; +struct _mystruct1 ___mystruct2 mystruct3 end; method f () var muh := 0x10; muh := muh * (9 - 0x4); /* test comment */ - /* groeserer comemnt - + /* ganz + vieeeeeeeeeel + kommentar + + */ if (muh = -0x5) then muh := muh * -2; @@ -14,7 +17,7 @@ method f () end; while (muh < 10) do - muh := muh *(-2); + muh := muh * ((((((((((((-2)))))))))))); end; /* warum geht das nciht? */ @@ -25,5 +28,7 @@ method f () mystruct.hu := muh; mystruct.check_i_ned := muh; + this.bla := wtf; + return muh; end;