From: Bernhard Urban Date: Thu, 18 Mar 2010 14:47:23 +0000 (+0100) Subject: parser: test verzeichnis verschoben X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=uebersetzerbau-ss10.git;a=commitdiff_plain;h=8074764d41984cdb62d625362ce8534e34618932 parser: test verzeichnis verschoben folgendes ausfuehren, dass es dann passt... > cd && ln -s ~/abgabe/test/ test --- diff --git a/parser/09test.sh b/parser/09test.sh index 548ac36..ab33935 100755 --- a/parser/09test.sh +++ b/parser/09test.sh @@ -7,7 +7,7 @@ PROGRAM=./$beispiel errnum=0 prgnum=0 -LOC=~/abgabe/$beispiel/test +LOC=~/test/$beispiel/ for i in $LOC/*.[012] do diff --git a/parser/test/a.0 b/parser/test/a.0 deleted file mode 100644 index c8626b7..0000000 --- a/parser/test/a.0 +++ /dev/null @@ -1,25 +0,0 @@ -struct mystruct end; -method f () - var muh := 0x10; - muh := muh * -2; - /* test comment */ - /* groeserer comemnt - - */ - if (muh < -0x5) then - muh := muh * -2; - else - muh := 0x55; - end; - - while (muh < 10) do - muh := muh * -2; - end; - - /* warum geht das nciht? */ - while (muh < 10) do - muh := muh - 2; - end; - - return muh; -end; diff --git a/parser/test/a.1 b/parser/test/a.1 deleted file mode 100644 index 48d19b3..0000000 --- a/parser/test/a.1 +++ /dev/null @@ -1,4 +0,0 @@ -method f () - var muh # 0x10; - muh := muh * -2; -end; diff --git a/parser/test/a.2 b/parser/test/a.2 deleted file mode 100644 index a59ac9c..0000000 --- a/parser/test/a.2 +++ /dev/null @@ -1,4 +0,0 @@ -method f () - var muh := 0x10; - muh = muh * -2; -end; diff --git a/test/parser/a.0 b/test/parser/a.0 new file mode 100644 index 0000000..c8626b7 --- /dev/null +++ b/test/parser/a.0 @@ -0,0 +1,25 @@ +struct mystruct end; +method f () + var muh := 0x10; + muh := muh * -2; + /* test comment */ + /* groeserer comemnt + + */ + if (muh < -0x5) then + muh := muh * -2; + else + muh := 0x55; + end; + + while (muh < 10) do + muh := muh * -2; + end; + + /* warum geht das nciht? */ + while (muh < 10) do + muh := muh - 2; + end; + + return muh; +end; diff --git a/test/parser/a.1 b/test/parser/a.1 new file mode 100644 index 0000000..48d19b3 --- /dev/null +++ b/test/parser/a.1 @@ -0,0 +1,4 @@ +method f () + var muh # 0x10; + muh := muh * -2; +end; diff --git a/test/parser/a.2 b/test/parser/a.2 new file mode 100644 index 0000000..a59ac9c --- /dev/null +++ b/test/parser/a.2 @@ -0,0 +1,4 @@ +method f () + var muh := 0x10; + muh = muh * -2; +end;