From: fennecdjay Date: Sat, 6 Jul 2019 13:30:03 +0000 (+0200) Subject: :art: Change comments X-Git-Tag: nightly~2348^2~38 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=00c599101c01f0dfd8415d6559531d2bb5e55afd;p=gwion.git :art: Change comments --- diff --git a/ast b/ast index 6860cd22..1b4487bf 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit 6860cd22ad558e5efa3bb183fa71bf3c10bc80a7 +Subproject commit 1b4487bfbb845050d0b5c0ed1a1564c9edf4f7ec diff --git a/docs/01_Overview/00_First_Steps/01_InstallingGwion.mdr b/docs/01_Overview/00_First_Steps/01_InstallingGwion.mdr index 1e7717b2..b64f4273 100644 --- a/docs/01_Overview/00_First_Steps/01_InstallingGwion.mdr +++ b/docs/01_Overview/00_First_Steps/01_InstallingGwion.mdr @@ -2,12 +2,12 @@ ## Get the sources -The source is accessible on [github](https://github.com). +The source is accessible on [github](https:#!github.com). Provided you have git installed, you can get it with: ``` sh -git clone https://github.com/fennecdjay/gwion +git clone https:#!github.com/fennecdjay/gwion ``` then change to the source directory diff --git a/docs/01_Overview/Testing.mdr b/docs/01_Overview/Testing.mdr index 3c3a79dd..5dde62b4 100644 --- a/docs/01_Overview/Testing.mdr +++ b/docs/01_Overview/Testing.mdr @@ -1,16 +1,16 @@ # Tests -[test.sh](https://github.com/fennecdjay/Gwion/blob/dev/util/test.sh) -requires [valgrind](http://valgrind.org/) +[test.sh](https:#!github.com/fennecdjay/Gwion/blob/dev/util/test.sh) +requires [valgrind](http:#!valgrind.org/) there are two kinds of tests: * [gwion](#gwion-tests) * [bash](#bash-tests) ## Gwion tests those tests are just gwion (.gw) files, handling special comments: - * `// [skip]` (*optionally* followed by reason to skip) - * `// [todo]` (*optionally* followed by reason to delay testing) - * `// [contains]` followed by string to match - * `// [excludes]` followed by string not to match + * `#! [skip]` (*optionally* followed by reason to skip) + * `#! [todo]` (*optionally* followed by reason to delay testing) + * `#! [contains]` followed by string to match + * `#! [excludes]` followed by string not to match ## Shell test those tests are just bash (.sh) files. diff --git a/docs/01_Overview/declaration.mdr b/docs/01_Overview/declaration.mdr index 07e6d07b..79754b31 100644 --- a/docs/01_Overview/declaration.mdr +++ b/docs/01_Overview/declaration.mdr @@ -15,7 +15,7 @@ However ... @``` decl1.gw Object @ref; <<< "Reference points to no object yet: ", ref >>>; -//Object o @=> ref; +#!Object o @=> ref; new Object @=> ref; <<< "But now it does: ", ref >>>; @``` diff --git a/docs/02_Reference/01_Functions/function.mdr b/docs/02_Reference/01_Functions/function.mdr index e2a26cfa..2fab4d37 100644 --- a/docs/02_Reference/01_Functions/function.mdr +++ b/docs/02_Reference/01_Functions/function.mdr @@ -3,17 +3,17 @@ ## a simple (commented example) @``` function0.gw -// declare function 'test_function' -// with return type int -// taking an int as argument +#! declare function 'test_function' +#! with return type int +#! taking an int as argument fun int test_function(int arg) { - // return the argument + 2 + #! return the argument + 2 return arg + 2; } -// now call the function (and debug print the result) +#! now call the function (and debug print the result) <<< test_function(0) >>>; -// or use alternate syntax +#! or use alternate syntax <<< 1 => test_function >>>; @``` @exec make -s function0.test diff --git a/docs/09_Benchmarks.md b/docs/09_Benchmarks.md new file mode 100644 index 00000000..bc87638f --- /dev/null +++ b/docs/09_Benchmarks.md @@ -0,0 +1,238 @@ +# Benchmarks + +We'll need a bash script + +
+ +### and a gnuplot script + +
+ +## Show the results +Then just run it +binary-trees +### binary-trees +
+![](assets/benchmark/binary-trees.png) +fib +### fib +
+![](assets/benchmark/fib.png) +fib-recurs +### fib-recurs +
+![](assets/benchmark/fib-recurs.png) +method-call +### method-call +
+![](assets/benchmark/method-call.png) diff --git a/docs/assets/benchmark/binary-trees.dat b/docs/assets/benchmark/binary-trees.dat index fb8e99ce..b1e8e6f5 100644 --- a/docs/assets/benchmark/binary-trees.dat +++ b/docs/assets/benchmark/binary-trees.dat @@ -1,3 +1,3 @@ -gwion 0.191172 0.51 -wren 0.23937 0.44 -lua 0.30958 0.46 +gwion 0.18819 0.63 +wren 0.24076 2.13 +lua 0.32172 0.82 diff --git a/docs/assets/benchmark/binary-trees.png b/docs/assets/benchmark/binary-trees.png index 61bef3ec..26a47422 100644 Binary files a/docs/assets/benchmark/binary-trees.png and b/docs/assets/benchmark/binary-trees.png differ diff --git a/docs/assets/benchmark/fib-recurs.dat b/docs/assets/benchmark/fib-recurs.dat index 2a8f7e6b..0d9504d6 100644 --- a/docs/assets/benchmark/fib-recurs.dat +++ b/docs/assets/benchmark/fib-recurs.dat @@ -1,3 +1,3 @@ -gwion 5.3121 0.52 -wren 13.5283 0.47 -lua 7.4075 0.63 +gwion 5.4137 0.34 +wren 13.5268 0.22 +lua 7.2720 0.33 diff --git a/docs/assets/benchmark/fib-recurs.png b/docs/assets/benchmark/fib-recurs.png index 085ab844..7b7cc503 100644 Binary files a/docs/assets/benchmark/fib-recurs.png and b/docs/assets/benchmark/fib-recurs.png differ diff --git a/docs/assets/benchmark/fib.dat b/docs/assets/benchmark/fib.dat index fa2a73ca..92e1c1ff 100644 --- a/docs/assets/benchmark/fib.dat +++ b/docs/assets/benchmark/fib.dat @@ -1,3 +1,3 @@ -gwion 0.086447 0.50 -wren 0.22208 0.66 -lua 0.21990 0.76 +gwion 0.086401 0.30 +wren 0.220461 0.23 +lua 0.22028 0.93 diff --git a/docs/assets/benchmark/fib.png b/docs/assets/benchmark/fib.png index 67fe777e..4cafb8af 100644 Binary files a/docs/assets/benchmark/fib.png and b/docs/assets/benchmark/fib.png differ diff --git a/docs/assets/benchmark/method-call.dat b/docs/assets/benchmark/method-call.dat index 721144b6..efe2c151 100644 --- a/docs/assets/benchmark/method-call.dat +++ b/docs/assets/benchmark/method-call.dat @@ -1,3 +1,3 @@ -gwion 0.091942 0.20 -wren 0.108581 0.42 -lua 0.25822 1.11 +gwion 0.091115 0.35 +wren 0.107178 0.46 +lua 0.25818 1.72 diff --git a/docs/assets/benchmark/method-call.png b/docs/assets/benchmark/method-call.png index 90dfb94f..e95476e5 100644 Binary files a/docs/assets/benchmark/method-call.png and b/docs/assets/benchmark/method-call.png differ diff --git a/tests/benchmark/binary-trees.gw b/tests/benchmark/binary-trees.gw index ad6013b4..af3486c1 100644 --- a/tests/benchmark/binary-trees.gw +++ b/tests/benchmark/binary-trees.gw @@ -1,4 +1,4 @@ -// Ported from the Wren version. +#! Ported from the Wren version. class Tree { int item; @@ -32,7 +32,7 @@ maxDepth + 1 => int stretchDepth; Tree.new_Tree(0, maxDepth) @=> Tree@ longLivedTree; -// iterations = 2 ** maxDepth +#! iterations = 2 ** maxDepth 1 => int iterations; for (int d; d < maxDepth; ++d) 2 *=> iterations; diff --git a/tests/benchmark/fib-recurs.gw b/tests/benchmark/fib-recurs.gw index cb667e96..be2c4ab7 100644 --- a/tests/benchmark/fib-recurs.gw +++ b/tests/benchmark/fib-recurs.gw @@ -4,5 +4,5 @@ fun int recursive_fib(int n) { else return recursive_fib(n - 2) + recursive_fib(n - 1); } -//<<< 5 => recursive_fib >>>; +#!<<< 5 => recursive_fib >>>; <<< 40 => recursive_fib >>>; diff --git a/tests/bug/Tester.gw b/tests/bug/Tester.gw index bba45d65..ad9e9ab7 100644 --- a/tests/bug/Tester.gw +++ b/tests/bug/Tester.gw @@ -8,8 +8,8 @@ Tester t; Object o; Object @ref; "test" => string s; -//<<< t.assert_equal("test", 1, 1) >>>; -//<<< t.assert_equal("test", 2, 1) >>>; +#!<<< t.assert_equal("test", 1, 1) >>>; +#!<<< t.assert_equal("test", 2, 1) >>>; <<< t.assert_equal(s, 1, 1) >>>; <<< t.assert_equal(s, 2, 1 + 1) >>>; <<< t.assert_equal(s, 2, 1) >>>; diff --git a/tests/bug/class_doc.gw b/tests/bug/class_doc.gw index 7946c2ff..f4598a8c 100644 --- a/tests/bug/class_doc.gw +++ b/tests/bug/class_doc.gw @@ -1,11 +1,11 @@ -//! doc for class 'C' +#!! doc for class 'C' class C { - //! has an int + #!! has an int int i; - //! a fun + #!! a fun fun void test() {} - //! operator + #!! operator operator => void(C c, C d){ <<< c, " ", d >>>; } diff --git a/tests/bug/do_while.gw b/tests/bug/do_while.gw index a93a5cf1..83573d25 100644 --- a/tests/bug/do_while.gw +++ b/tests/bug/do_while.gw @@ -2,9 +2,9 @@ do { <<< i-- >>>; } while(i); 5 => float f; do { <<< 1 -=> f >>>; } while(f > 0.0); -// do { <<< 1 -=> f >>>; } while(f > 0); +#! do { <<< 1 -=> f >>>; } while(f > 0); 5 => f; do { <<< 1 -=> f >>>; } until(f == 0); -//do { <<< 1 -=> f >>>; } until(f == 0.0); +#!do { <<< 1 -=> f >>>; } until(f == 0.0); 5 => i; do { <<< i-- >>>; } until(!i); diff --git a/tests/bug/dot_member_func.gw b/tests/bug/dot_member_func.gw index c3df878a..24a85023 100644 --- a/tests/bug/dot_member_func.gw +++ b/tests/bug/dot_member_func.gw @@ -1,4 +1,4 @@ -// thanks to afl-fuzz +#! thanks to afl-fuzz SinOsc@s, t; Gain g => dac; 1 => t.freq; diff --git a/tests/bug/float.gw b/tests/bug/float.gw index 7197eed7..7dddd43d 100644 --- a/tests/bug/float.gw +++ b/tests/bug/float.gw @@ -1,487 +1,487 @@ -// coverage for 'float'. (generated by util/coverage.sh) +#! coverage for 'float'. (generated by util/coverage.sh) float a; -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1=variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1+variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1-variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1*variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; 1 => float variable2; <<< variable1/variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1&&variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1||variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1==variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1!=variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1>variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1>=variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1<=variable2 >>>; } -//testing operator for and float +#!testing operator for and float { float variable2; <<< -variable2 >>>; } -//testing operator for and int +#!testing operator for and int { int variable2; <<< !variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1=>variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1+=>variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1-=>variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1*=>variable2 >>>; } -//testing operator for float and float +#!testing operator for float and float { float variable1; float variable2; <<< variable1/=>variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1=variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1+variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1-variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1*variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1/variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1&&variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1||variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1==variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1!=variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1>variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1>=variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1<=variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1=>variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1+=>variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1-=>variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1*=>variable2 >>>; } -//testing operator for int and float +#!testing operator for int and float { int variable1; float variable2; <<< variable1/=>variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1+variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1-variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1*variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1/variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1&&variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1||variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1==variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1!=variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1>variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1>=variable2 >>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1>>; } -//testing operator for float and int +#!testing operator for float and int { float variable1; int variable2; <<< variable1<=variable2 >>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1=>variable2 >>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1+variable2 >>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1-variable2 >>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1*variable2 >>>; } -//testing operator for dur and float +#!testing operator for dur and float { dur variable1; float variable2; <<< variable1*variable2 >>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1/variable2 >>>; } -//testing operator for dur and float +#!testing operator for dur and float { dur variable1; float variable2; <<< variable1/variable2 >>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1>variable2 >>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1>=variable2 >>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1>>; } -//testing operator for dur and dur +#!testing operator for dur and dur { dur variable1; dur variable2; <<< variable1<=variable2 >>>; } -//testing operator for time and time +#!testing operator for time and time { time variable1; time variable2; <<< variable1=>variable2 >>>; } -//testing operator for dur and time +#!testing operator for dur and time { dur variable1; time variable2; <<< variable1=>variable2 >>>; } -//testing operator for dur and +#!testing operator for dur and { dur variable1; <<< variable1=> now >>>; } -//testing operator for time and dur +#!testing operator for time and dur { time variable1; dur variable2; <<< variable1+variable2 >>>; } -//testing operator for dur and time +#!testing operator for dur and time { dur variable1; time variable2; <<< variable1+variable2 >>>; } -//testing operator for time and time +#!testing operator for time and time { time variable1; time variable2; <<< variable1>variable2 >>>; } -//testing operator for time and time +#!testing operator for time and time { time variable1; time variable2; <<< variable1>=variable2 >>>; } -//testing operator for time and time +#!testing operator for time and time { time variable1; time variable2; <<< variable1>>; } -//testing operator for time and time +#!testing operator for time and time { time variable1; time variable2; diff --git a/tests/bug/float2.gw b/tests/bug/float2.gw index 33120f40..59f8352c 100644 --- a/tests/bug/float2.gw +++ b/tests/bug/float2.gw @@ -64,8 +64,8 @@ float f,g; <<< 0.0 || i >>>; -//<<< 1.0 == i >>>; -//<<< 1.0 != i >>>; +#!<<< 1.0 == i >>>; +#!<<< 1.0 != i >>>; <<< 1.0 +=> i >>>; diff --git a/tests/bug/ugen.gw b/tests/bug/ugen.gw index 00249b96..4329690a 100644 --- a/tests/bug/ugen.gw +++ b/tests/bug/ugen.gw @@ -1,21 +1,21 @@ UGen @u; -//u.last(); // should fail => fails. +#!u.last(); // should fail => fails. SinOsc s => Gain g => dac; for(-1 => int i;i < 6; i++) i => g.op; samp => now; s.last(); -//s.chan(2); -//dac.chan(1); +#!s.chan(2); +#!dac.chan(1); samp => now; -// there a bug somewhere. -// probably deref 'dac' to many mul ... -//dac => blackhole; -//dac =< blackhole; -//dac =< s; -//dac =< s; +#! there a bug somewhere. +#! probably deref 'dac' to many mul ... +#!dac => blackhole; +#!dac =< blackhole; +#!dac =< s; +#!dac =< s; s =< dac; s =< dac; -//dac =< s; +#!dac =< s; diff --git a/tests/error/0_size_variable.gw b/tests/error/0_size_variable.gw index d5e4e8d9..11ca4d63 100644 --- a/tests/error/0_size_variable.gw +++ b/tests/error/0_size_variable.gw @@ -1,2 +1,2 @@ -// [contains] cannot +#! [contains] cannot void this_won_t_work; diff --git a/tests/error/abstract.gw b/tests/error/abstract.gw index 38421718..19930d17 100644 --- a/tests/error/abstract.gw +++ b/tests/error/abstract.gw @@ -1,2 +1,2 @@ -// [contains] is abstract, declare as ref +#! [contains] is abstract, declare as ref Shred shred; diff --git a/tests/error/already_parent.gw b/tests/error/already_parent.gw index 16ac6592..63959026 100644 --- a/tests/error/already_parent.gw +++ b/tests/error/already_parent.gw @@ -1,4 +1,4 @@ -// [contains] has already been defined in parent class +#! [contains] has already been defined in parent class class C { int i; } diff --git a/tests/error/arg_prim_ref.gw b/tests/error/arg_prim_ref.gw index 2e78acc6..a8191668 100644 --- a/tests/error/arg_prim_ref.gw +++ b/tests/error/arg_prim_ref.gw @@ -1,2 +1,2 @@ -// [contains] primitive types cannot be used as reference +#! [contains] primitive types cannot be used as reference fun void test(int @i){} diff --git a/tests/error/arg_res.gw b/tests/error/arg_res.gw index a94baa56..c4988725 100644 --- a/tests/error/arg_res.gw +++ b/tests/error/arg_res.gw @@ -1,2 +1,2 @@ -// [contains] this is reserved +#! [contains] this is reserved fun void test(int this){} diff --git a/tests/error/array_assign_exp.gw b/tests/error/array_assign_exp.gw index 15365ef9..5b44a0f2 100644 --- a/tests/error/array_assign_exp.gw +++ b/tests/error/array_assign_exp.gw @@ -1,2 +1,2 @@ -// [contains] do not provide array +#! [contains] do not provide array [1,2,3,4] @=> int loop[1]; diff --git a/tests/error/array_depth_match.gw b/tests/error/array_depth_match.gw index 44485602..e411cf94 100644 --- a/tests/error/array_depth_match.gw +++ b/tests/error/array_depth_match.gw @@ -1,2 +1,2 @@ -// [contains] array depths do not match +#! [contains] array depths do not match [1,2,3,4] @=> int k[1][1]; diff --git a/tests/error/array_err2.gw b/tests/error/array_err2.gw index a589e044..5afa3717 100644 --- a/tests/error/array_err2.gw +++ b/tests/error/array_err2.gw @@ -1,2 +1,2 @@ -// [contains] partially empty array init +#! [contains] partially empty array init int i[2][]; diff --git a/tests/error/array_err3.gw b/tests/error/array_err3.gw index 971933f5..7f1ed39d 100644 --- a/tests/error/array_err3.gw +++ b/tests/error/array_err3.gw @@ -1,2 +1,2 @@ -// [contains] partially empty array init +#! [contains] partially empty array init int i[][3]; diff --git a/tests/error/array_excess.gw b/tests/error/array_excess.gw index a5366648..ebb16797 100644 --- a/tests/error/array_excess.gw +++ b/tests/error/array_excess.gw @@ -1,3 +1,3 @@ -// [contains] exceeds defined dimension +#! [contains] exceeds defined dimension int i[2]; i[0][0]; diff --git a/tests/error/array_incompatible.gw b/tests/error/array_incompatible.gw index abedb313..0af41e4b 100644 --- a/tests/error/array_incompatible.gw +++ b/tests/error/array_incompatible.gw @@ -1,2 +1,2 @@ -// [contains] contains incompatible types +#! [contains] contains incompatible types [null, 1]; diff --git a/tests/error/array_invalid.gw b/tests/error/array_invalid.gw index cbc1a1ce..b4e738ee 100644 --- a/tests/error/array_invalid.gw +++ b/tests/error/array_invalid.gw @@ -1,3 +1,3 @@ -// [contains] must be of type 'int' +#! [contains] must be of type 'int' int i[4]; i[null]; diff --git a/tests/error/array_invalid1.gw b/tests/error/array_invalid1.gw index abe913b9..490d340e 100644 --- a/tests/error/array_invalid1.gw +++ b/tests/error/array_invalid1.gw @@ -1,2 +1,2 @@ -// [contains] invalid format for array init +#! [contains] invalid format for array init [ [1,2] [3,4] ]; diff --git a/tests/error/array_multi_except.gw b/tests/error/array_multi_except.gw index 1e28ca76..614905e1 100644 --- a/tests/error/array_multi_except.gw +++ b/tests/error/array_multi_except.gw @@ -1,4 +1,4 @@ -// [contains] NullPtrException +#! [contains] NullPtrException int i[1][1]; null @=> i[0]; <<< i[0][0] >>>; diff --git a/tests/error/array_multi_oob.gw b/tests/error/array_multi_oob.gw index b71375c6..0ab571b2 100644 --- a/tests/error/array_multi_oob.gw +++ b/tests/error/array_multi_oob.gw @@ -1,3 +1,3 @@ -// [contains] ArrayOutofBounds +#! [contains] ArrayOutofBounds Object o[1][1]; o[1]; diff --git a/tests/error/array_mutable.gw b/tests/error/array_mutable.gw index 744b1936..59446465 100644 --- a/tests/error/array_mutable.gw +++ b/tests/error/array_mutable.gw @@ -1,2 +1,2 @@ -// [contains] non-mutable +#! [contains] non-mutable [1,2,3,4] @=> [1][1]; diff --git a/tests/error/array_no_member.gw b/tests/error/array_no_member.gw index 5963e77b..de08f1fd 100644 --- a/tests/error/array_no_member.gw +++ b/tests/error/array_no_member.gw @@ -1,3 +1,3 @@ -// [contains] has no member +#! [contains] has no member int i[2][2]; i[0].test; diff --git a/tests/error/array_oob.gw b/tests/error/array_oob.gw index 2f395432..cb186b85 100644 --- a/tests/error/array_oob.gw +++ b/tests/error/array_oob.gw @@ -1,3 +1,3 @@ -// [contains] ArrayOutofBounds +#! [contains] ArrayOutofBounds Object i[1]; i[1]; diff --git a/tests/error/array_oob_multi.gw b/tests/error/array_oob_multi.gw index 051efbc6..2dcdb4ed 100644 --- a/tests/error/array_oob_multi.gw +++ b/tests/error/array_oob_multi.gw @@ -1,3 +1,3 @@ -// [contains] ArrayOutofBounds +#! [contains] ArrayOutofBounds Object i[1][1]; i[1][0]; diff --git a/tests/error/array_type_match.gw b/tests/error/array_type_match.gw index 52b7a544..63709514 100644 --- a/tests/error/array_type_match.gw +++ b/tests/error/array_type_match.gw @@ -1,2 +1,2 @@ -// [contains] array types do not match +#! [contains] array types do not match [1,2,3,4] @=> Object k[1]; diff --git a/tests/error/auto_not_array.gw b/tests/error/auto_not_array.gw index d418d9b4..95170ee8 100644 --- a/tests/error/auto_not_array.gw +++ b/tests/error/auto_not_array.gw @@ -1,4 +1,4 @@ -// [contains] not allowed in auto loop +#! [contains] not allowed in auto loop Object i; for(auto a: i) <<< a >>>; diff --git a/tests/error/break_out.gw b/tests/error/break_out.gw index 7ff8e15a..a48ab274 100644 --- a/tests/error/break_out.gw +++ b/tests/error/break_out.gw @@ -1,2 +1,2 @@ -// [contains] 'break' found outside of for/while/until +#! [contains] 'break' found outside of for/while/until break; diff --git a/tests/error/cant_find_in_nspc.gw b/tests/error/cant_find_in_nspc.gw index cbab52eb..0513e7b3 100644 --- a/tests/error/cant_find_in_nspc.gw +++ b/tests/error/cant_find_in_nspc.gw @@ -1,4 +1,4 @@ -// [contains] cannot find class +#! [contains] cannot find class class C { class D { int i; diff --git a/tests/error/case_const.gw b/tests/error/case_const.gw index 03fe98ea..9613f147 100644 --- a/tests/error/case_const.gw +++ b/tests/error/case_const.gw @@ -1,5 +1,5 @@ -// [contains] is not constant -// also coverage for 'case' +#! [contains] is not constant +#! also coverage for 'case' enum {zero, one, a , b, c }; class C { diff --git a/tests/error/case_not_const.gw b/tests/error/case_not_const.gw index aa0b6847..bb965417 100644 --- a/tests/error/case_not_const.gw +++ b/tests/error/case_not_const.gw @@ -1,4 +1,4 @@ -// [contains] is not const +#! [contains] is not const int i; switch(maybe) { case i: diff --git a/tests/error/case_postfix.gw b/tests/error/case_postfix.gw index c5c9f752..78a00a2c 100644 --- a/tests/error/case_postfix.gw +++ b/tests/error/case_postfix.gw @@ -1,4 +1,4 @@ -// [contains] unhandled expression type +#! [contains] unhandled expression type int i[1]; switch(maybe) { case i[0]: break; diff --git a/tests/error/cast_unknown.gw b/tests/error/cast_unknown.gw index b2dbc4ed..81379281 100644 --- a/tests/error/cast_unknown.gw +++ b/tests/error/cast_unknown.gw @@ -1,2 +1,2 @@ -// [contains] unknown type +#! [contains] unknown type 1 $ UnknownType; diff --git a/tests/error/class_enum.gw b/tests/error/class_enum.gw index d4e68cfa..3a16175f 100644 --- a/tests/error/class_enum.gw +++ b/tests/error/class_enum.gw @@ -1,4 +1,4 @@ -// [contains] unary operator '--' cannot be used on non-mutable data-types +#! [contains] unary operator '--' cannot be used on non-mutable data-types class C { enum { a, b }; diff --git a/tests/error/class_inside.gw b/tests/error/class_inside.gw index 324772a8..22afc751 100644 --- a/tests/error/class_inside.gw +++ b/tests/error/class_inside.gw @@ -1,4 +1,4 @@ -// [contains] declared inside itself +#! [contains] declared inside itself class c { c var; } diff --git a/tests/error/complex_too_big.gw b/tests/error/complex_too_big.gw index 20f5c56c..c9c0c150 100644 --- a/tests/error/complex_too_big.gw +++ b/tests/error/complex_too_big.gw @@ -1,2 +1,2 @@ -// [contains] extraneous component of complex value +#! [contains] extraneous component of complex value #(0,0,0,0); diff --git a/tests/error/conflict_super.gw b/tests/error/conflict_super.gw index c9fbeecb..72199c4b 100644 --- a/tests/error/conflict_super.gw +++ b/tests/error/conflict_super.gw @@ -1,4 +1,4 @@ -// [contains] function name 'test' conflicts with previously defined value +#! [contains] function name 'test' conflicts with previously defined value class C { int test; } diff --git a/tests/error/const_arg.gw b/tests/error/const_arg.gw index 13923814..916fdacd 100644 --- a/tests/error/const_arg.gw +++ b/tests/error/const_arg.gw @@ -1,4 +1,4 @@ -// [contains] right-side operand is non-mutable +#! [contains] right-side operand is non-mutable fun void test(const int i) { 10 => i; } diff --git a/tests/error/const_non_mutable.gw b/tests/error/const_non_mutable.gw index 5b46158e..d7b32ef3 100644 --- a/tests/error/const_non_mutable.gw +++ b/tests/error/const_non_mutable.gw @@ -1,4 +1,4 @@ -// [contains] right-side operand is non-mutable +#! [contains] right-side operand is non-mutable 10 => const int i; 12 => i; <<< i >>>; diff --git a/tests/error/continue_out.gw b/tests/error/continue_out.gw index 0c5513c0..45570ccb 100644 --- a/tests/error/continue_out.gw +++ b/tests/error/continue_out.gw @@ -1,2 +1,2 @@ -// [contains] 'continue' found outside of for/while/until +#! [contains] 'continue' found outside of for/while/until continue; diff --git a/tests/error/default_case_defined.gw b/tests/error/default_case_defined.gw index 73ade6cc..b551a8bf 100644 --- a/tests/error/default_case_defined.gw +++ b/tests/error/default_case_defined.gw @@ -1,4 +1,4 @@ -// (contains] default case already defined +#! (contains] default case already defined switch(maybe) { default: default: diff --git a/tests/error/defined_class.gw b/tests/error/defined_class.gw index 30910dd3..10a26a2f 100644 --- a/tests/error/defined_class.gw +++ b/tests/error/defined_class.gw @@ -1,3 +1,3 @@ -// [contains] already defined +#! [contains] already defined class C{} class C{} diff --git a/tests/error/divide_by_zero.gw b/tests/error/divide_by_zero.gw index 724f3621..56a09b04 100644 --- a/tests/error/divide_by_zero.gw +++ b/tests/error/divide_by_zero.gw @@ -1,2 +1,2 @@ -// [contains] ZeroDivideException +#! [contains] ZeroDivideException [ #(0.0, 0/0) ]; diff --git a/tests/error/dtor_outside_class.gw b/tests/error/dtor_outside_class.gw index 29d1541f..e5324905 100644 --- a/tests/error/dtor_outside_class.gw +++ b/tests/error/dtor_outside_class.gw @@ -1,2 +1,2 @@ -// [contains] dtor must be in class def!! +#! [contains] dtor must be in class def!! dtor {} diff --git a/tests/error/dup_case.gw b/tests/error/dup_case.gw index ad1092ad..6714af14 100644 --- a/tests/error/dup_case.gw +++ b/tests/error/dup_case.gw @@ -1,4 +1,4 @@ -// [contains] duplicated cases value +#! [contains] duplicated cases value switch(maybe) { case 1: case 1: diff --git a/tests/error/empty_for.gw b/tests/error/empty_for.gw index c82dabec..f4bf893f 100644 --- a/tests/error/empty_for.gw +++ b/tests/error/empty_for.gw @@ -1,3 +1,3 @@ -// [contains] empty for loop condition +#! [contains] empty for loop condition <<< "test" >>>; for(;;){} diff --git a/tests/error/empty_member_ptr.gw b/tests/error/empty_member_ptr.gw index d950e990..e5a900a2 100644 --- a/tests/error/empty_member_ptr.gw +++ b/tests/error/empty_member_ptr.gw @@ -1,4 +1,4 @@ -// [contains] NullPtrException +#! [contains] NullPtrException class C { typedef void test(); diff --git a/tests/error/empty_obj_data.gw b/tests/error/empty_obj_data.gw index 768eceb9..8921e2b9 100644 --- a/tests/error/empty_obj_data.gw +++ b/tests/error/empty_obj_data.gw @@ -1,4 +1,4 @@ -// [contains] NullPtrException +#! [contains] NullPtrException class C { int i; diff --git a/tests/error/enum_declared.gw b/tests/error/enum_declared.gw index 6003476f..9cb712f9 100644 --- a/tests/error/enum_declared.gw +++ b/tests/error/enum_declared.gw @@ -1,4 +1,4 @@ -// [contains] already been defined +#! [contains] already been defined int i; enum { diff --git a/tests/error/enum_defined.gw b/tests/error/enum_defined.gw index 828a4adf..8cc8d79e 100644 --- a/tests/error/enum_defined.gw +++ b/tests/error/enum_defined.gw @@ -1,4 +1,4 @@ -// [contains] already declared +#! [contains] already declared enum { first diff --git a/tests/error/enum_defined2.gw b/tests/error/enum_defined2.gw index 27394d5d..a38d127c 100644 --- a/tests/error/enum_defined2.gw +++ b/tests/error/enum_defined2.gw @@ -1,4 +1,4 @@ -// [contains] already been defined +#! [contains] already been defined int i; enum { diff --git a/tests/error/enum_defined3.gw b/tests/error/enum_defined3.gw index bc326655..39fc8189 100644 --- a/tests/error/enum_defined3.gw +++ b/tests/error/enum_defined3.gw @@ -1,4 +1,4 @@ -// [contains] already declared +#! [contains] already declared enum { first diff --git a/tests/error/enum_defined_var.gw b/tests/error/enum_defined_var.gw index 81f14489..5ca10822 100644 --- a/tests/error/enum_defined_var.gw +++ b/tests/error/enum_defined_var.gw @@ -1,4 +1,4 @@ -// [contains] already declared as variable +#! [contains] already declared as variable enum { first, diff --git a/tests/error/error.gw b/tests/error/error.gw index 37c41f23..f38df732 100644 --- a/tests/error/error.gw +++ b/tests/error/error.gw @@ -1,4 +1,4 @@ -// [contains] right-side operand is non-mutable +#! [contains] right-side operand is non-mutable const int i; 12 => i; diff --git a/tests/error/ev.gw b/tests/error/ev.gw index 90889571..45864d29 100644 --- a/tests/error/ev.gw +++ b/tests/error/ev.gw @@ -1,3 +1,3 @@ -// [contains] NullEventWait +#! [contains] NullEventWait Event @e; e => now; diff --git a/tests/error/fail_assign.gw b/tests/error/fail_assign.gw index e697c0e3..1384a540 100644 --- a/tests/error/fail_assign.gw +++ b/tests/error/fail_assign.gw @@ -1,3 +1,3 @@ -// [contains] not allowed +#! [contains] not allowed class C extends Event{} Event e @=> C o; diff --git a/tests/error/func_arg_array_empty.gw b/tests/error/func_arg_array_empty.gw index 70d28d36..776033ab 100644 --- a/tests/error/func_arg_array_empty.gw +++ b/tests/error/func_arg_array_empty.gw @@ -1,2 +1,2 @@ -// [contains] must be defined with empty +#! [contains] must be defined with empty fun int[] my_func(int i[2]){} diff --git a/tests/error/func_arg_defined.gw b/tests/error/func_arg_defined.gw index 3b5fbf85..fbfb35ca 100644 --- a/tests/error/func_arg_defined.gw +++ b/tests/error/func_arg_defined.gw @@ -1,2 +1,2 @@ -// [contains] already declared +#! [contains] already declared fun void test(int i, int i){} diff --git a/tests/error/func_arg_unknown.gw b/tests/error/func_arg_unknown.gw index c64c738e..bde6775b 100644 --- a/tests/error/func_arg_unknown.gw +++ b/tests/error/func_arg_unknown.gw @@ -1,2 +1,2 @@ -// [contains] unknown type +#! [contains] unknown type fun void my_func(unknown_type unknown_arg){} diff --git a/tests/error/func_code_error.gw b/tests/error/func_code_error.gw index 61041f6c..229933d4 100644 --- a/tests/error/func_code_error.gw +++ b/tests/error/func_code_error.gw @@ -1,2 +1,2 @@ -// [contains] in function: +#! [contains] in function: fun void test() { <<< b >>>; } diff --git a/tests/error/func_error_scan2.gw b/tests/error/func_error_scan2.gw index 5909dd8b..5b621ace 100644 --- a/tests/error/func_error_scan2.gw +++ b/tests/error/func_error_scan2.gw @@ -1,2 +1,2 @@ -// [contains] unknown type +#! [contains] unknown type fun void test() { skfuv sd; } diff --git a/tests/error/func_no_match.gw b/tests/error/func_no_match.gw index b59e3c4b..05961a5b 100644 --- a/tests/error/func_no_match.gw +++ b/tests/error/func_no_match.gw @@ -1,4 +1,4 @@ -// [contains] argument type(s) do not match for fun +#! [contains] argument type(s) do not match for fun fun void test(){} fun void test(int i[], int j[]){} test(1,2); diff --git a/tests/error/func_non.gw b/tests/error/func_non.gw index 39be5236..a4a97f4a 100644 --- a/tests/error/func_non.gw +++ b/tests/error/func_non.gw @@ -1,2 +1,2 @@ -// [contains] function call using a non-function value +#! [contains] function call using a non-function value null(); diff --git a/tests/error/func_ptr_empty.gw b/tests/error/func_ptr_empty.gw index e3184973..3b59ce85 100644 --- a/tests/error/func_ptr_empty.gw +++ b/tests/error/func_ptr_empty.gw @@ -1,4 +1,4 @@ -// [contains] NullPtrException +#! [contains] NullPtrException typedef void Test() Test test; test(); diff --git a/tests/error/func_ret_array_empty.gw b/tests/error/func_ret_array_empty.gw index 7ff64da7..dd326cf2 100644 --- a/tests/error/func_ret_array_empty.gw +++ b/tests/error/func_ret_array_empty.gw @@ -1,2 +1,2 @@ -// [contains] must be defined with empty +#! [contains] must be defined with empty fun int[1] my_func(int i[]){} diff --git a/tests/error/func_unknown_ret.gw b/tests/error/func_unknown_ret.gw index 70fc88b6..5574068c 100644 --- a/tests/error/func_unknown_ret.gw +++ b/tests/error/func_unknown_ret.gw @@ -1,2 +1,2 @@ -// [contains] unknown type +#! [contains] unknown type fun unknwon_type my_function(){} diff --git a/tests/error/function_arg_no_size.gw b/tests/error/function_arg_no_size.gw index daca37ab..f3ee9cee 100644 --- a/tests/error/function_arg_no_size.gw +++ b/tests/error/function_arg_no_size.gw @@ -1,2 +1,2 @@ -// [contains] cannot declare variables of size +#! [contains] cannot declare variables of size fun void test(void v){} diff --git a/tests/error/function_nested.gw b/tests/error/function_nested.gw index 4c7f35aa..0ce4549b 100644 --- a/tests/error/function_nested.gw +++ b/tests/error/function_nested.gw @@ -1,4 +1,4 @@ -// [contains] +#! [contains] fun void test() { fun void nested(){} diff --git a/tests/error/function_ret_ref_prim.gw b/tests/error/function_ret_ref_prim.gw index df101357..1dc38819 100644 --- a/tests/error/function_ret_ref_prim.gw +++ b/tests/error/function_ret_ref_prim.gw @@ -1,2 +1,2 @@ -// [contains] primitive types cannot be used as reference +#! [contains] primitive types cannot be used as reference fun int@ test(){} diff --git a/tests/error/function_used.gw b/tests/error/function_used.gw index 9e2e417e..65c4163b 100644 --- a/tests/error/function_used.gw +++ b/tests/error/function_used.gw @@ -1,3 +1,3 @@ -// [contains] is already used by another value +#! [contains] is already used by another value int i; fun void i(){} diff --git a/tests/error/global_func_already_defined.gw b/tests/error/global_func_already_defined.gw index 7678ce18..57358f7b 100644 --- a/tests/error/global_func_already_defined.gw +++ b/tests/error/global_func_already_defined.gw @@ -1,3 +1,3 @@ -// [contains] global function 'test' already defined for those arguments +#! [contains] global function 'test' already defined for those arguments fun void test(){} fun void test(){} diff --git a/tests/error/if_exp_compat.gw b/tests/error/if_exp_compat.gw index 2b757fc1..2cc6d045 100644 --- a/tests/error/if_exp_compat.gw +++ b/tests/error/if_exp_compat.gw @@ -1,2 +1,2 @@ -// [contains] incompatible types +#! [contains] incompatible types maybe ? null : 1; diff --git a/tests/error/if_exp_invalid_cond.gw b/tests/error/if_exp_invalid_cond.gw index 6e600b40..98a16df3 100644 --- a/tests/error/if_exp_invalid_cond.gw +++ b/tests/error/if_exp_invalid_cond.gw @@ -1,2 +1,2 @@ -// [contains] Invalid type +#! [contains] Invalid type null ? <<< 1 >>> : <<< 2 >>>; diff --git a/tests/error/invalid_array_acces.gw b/tests/error/invalid_array_acces.gw index 8f6f2bea..76cfbc3e 100644 --- a/tests/error/invalid_array_acces.gw +++ b/tests/error/invalid_array_acces.gw @@ -1,3 +1,3 @@ -// [contains] invalid array acces expression +#! [contains] invalid array acces expression int j[]; j[1,2,3,4] @=> i; diff --git a/tests/error/invalid_cast.gw b/tests/error/invalid_cast.gw index 00aa7f71..0770d9cb 100644 --- a/tests/error/invalid_cast.gw +++ b/tests/error/invalid_cast.gw @@ -1,4 +1,4 @@ -// [contains] no match found for operator +#! [contains] no match found for operator class C {} class D {} D d; diff --git a/tests/error/invalid_for.gw b/tests/error/invalid_for.gw index 80044ac9..9e8dce9c 100644 --- a/tests/error/invalid_for.gw +++ b/tests/error/invalid_for.gw @@ -1,2 +1,2 @@ -// [contains] in 'for' condition +#! [contains] in 'for' condition for(;null;); diff --git a/tests/error/invalid_return.gw b/tests/error/invalid_return.gw index 03ebbf66..20d5989d 100644 --- a/tests/error/invalid_return.gw +++ b/tests/error/invalid_return.gw @@ -1,2 +1,2 @@ -// [contains] invalid return type +#! [contains] invalid return type fun void test() { return 1; } diff --git a/tests/error/invalid_switch.gw b/tests/error/invalid_switch.gw index f20ec93a..b5bd929e 100644 --- a/tests/error/invalid_switch.gw +++ b/tests/error/invalid_switch.gw @@ -1,2 +1,2 @@ -// [contains] conditional must be of type +#! [contains] conditional must be of type switch(null){} diff --git a/tests/error/invalid_until.gw b/tests/error/invalid_until.gw index 66f78149..3314df6e 100644 --- a/tests/error/invalid_until.gw +++ b/tests/error/invalid_until.gw @@ -1,2 +1,2 @@ -// [contains] in 'until' condition +#! [contains] in 'until' condition until(null); diff --git a/tests/error/invalid_while.gw b/tests/error/invalid_while.gw index 57deda5e..bf2235d2 100644 --- a/tests/error/invalid_while.gw +++ b/tests/error/invalid_while.gw @@ -1,2 +1,2 @@ -// [contains] in 'while' condition +#! [contains] in 'while' condition while(null); diff --git a/tests/error/label_defined.gw b/tests/error/label_defined.gw index 108ee94a..51e6b434 100644 --- a/tests/error/label_defined.gw +++ b/tests/error/label_defined.gw @@ -1,4 +1,4 @@ -// [contains] already defined +#! [contains] already defined test: test: ; diff --git a/tests/error/label_defined_not_used.gw b/tests/error/label_defined_not_used.gw index 71a276df..e308ad05 100644 --- a/tests/error/label_defined_not_used.gw +++ b/tests/error/label_defined_not_used.gw @@ -1,3 +1,3 @@ -// [contains] defined but not used +#! [contains] defined but not used test: ; diff --git a/tests/error/label_not_defined1.gw b/tests/error/label_not_defined1.gw index e0dc264a..e552ce98 100644 --- a/tests/error/label_not_defined1.gw +++ b/tests/error/label_not_defined1.gw @@ -1,2 +1,2 @@ -// [contains] used but not defined +#! [contains] used but not defined goto test; diff --git a/tests/error/label_not_defined2.gw b/tests/error/label_not_defined2.gw index 3a46a9eb..37db4849 100644 --- a/tests/error/label_not_defined2.gw +++ b/tests/error/label_not_defined2.gw @@ -1,4 +1,4 @@ -// [contains] used but not defined +#! [contains] used but not defined goto here; here: goto test; diff --git a/tests/error/lambda_mismatch1.gw b/tests/error/lambda_mismatch1.gw index 449f0528..5635d4cf 100644 --- a/tests/error/lambda_mismatch1.gw +++ b/tests/error/lambda_mismatch1.gw @@ -1,2 +1,2 @@ -// [contains] argument number does not match for lambda +#! [contains] argument number does not match for lambda \a b { <<< a, " ", b >>>; }(1); diff --git a/tests/error/lambda_mismatch2.gw b/tests/error/lambda_mismatch2.gw index 808c008b..2f3fb527 100644 --- a/tests/error/lambda_mismatch2.gw +++ b/tests/error/lambda_mismatch2.gw @@ -1,4 +1,4 @@ -// [contains] argument number does not match for lambda +#! [contains] argument number does not match for lambda typedef void ptr_t(int i); \a b { <<< a, " ", b >>>; } @=> ptr_t ptr; ptr(2); diff --git a/tests/error/lambda_mismatch3.gw b/tests/error/lambda_mismatch3.gw index d1de1676..03e785f0 100644 --- a/tests/error/lambda_mismatch3.gw +++ b/tests/error/lambda_mismatch3.gw @@ -1,4 +1,4 @@ -// [contains] argument number does not match for lambda +#! [contains] argument number does not match for lambda typedef void ptr_t(int i); \a b { <<< a, " ", b >>>; } @=> ptr_t ptr; fun void test(ptr_t ptr) { diff --git a/tests/error/loop_not_int.gw b/tests/error/loop_not_int.gw index 538e8a3e..0ed3ca5d 100644 --- a/tests/error/loop_not_int.gw +++ b/tests/error/loop_not_int.gw @@ -1,4 +1,4 @@ -// [contains] conditional must be of type +#! [contains] conditional must be of type complex c; repeat(c) <<< "error" >>>; diff --git a/tests/error/member_from_static.gw b/tests/error/member_from_static.gw index 1c69586f..8af9f87d 100644 --- a/tests/error/member_from_static.gw +++ b/tests/error/member_from_static.gw @@ -1,4 +1,4 @@ -// [contains] +#! [contains] class C { int i; fun static void test() { diff --git a/tests/error/modulo_zero.gw b/tests/error/modulo_zero.gw index 848ab154..1d52ac77 100644 --- a/tests/error/modulo_zero.gw +++ b/tests/error/modulo_zero.gw @@ -1,2 +1,2 @@ -// [contains] ZeroDivideException +#! [contains] ZeroDivideException [ 1%0, 2, 3, 4, 5 ]; diff --git a/tests/error/multi_decl.gw b/tests/error/multi_decl.gw index 140b2ca7..fd79b7e8 100644 --- a/tests/error/multi_decl.gw +++ b/tests/error/multi_decl.gw @@ -1,2 +1,2 @@ -// [contains] from/to a multi-variable declaration +#! [contains] from/to a multi-variable declaration int i, ii => float f; diff --git a/tests/error/name_conflict.gw b/tests/error/name_conflict.gw index 48a252fe..8342f0e6 100644 --- a/tests/error/name_conflict.gw +++ b/tests/error/name_conflict.gw @@ -1,4 +1,4 @@ -// [contains] conflicts with previously defined value +#! [contains] conflicts with previously defined value class C { int test; } diff --git a/tests/error/named_union_global_private.gw b/tests/error/named_union_global_private.gw index 8b9c7458..901cf424 100644 --- a/tests/error/named_union_global_private.gw +++ b/tests/error/named_union_global_private.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope. +#! [contains] can only be used at class scope. union private { int i; } u; diff --git a/tests/error/named_union_global_private_static.gw b/tests/error/named_union_global_private_static.gw index b202b70e..7f8c6c30 100644 --- a/tests/error/named_union_global_private_static.gw +++ b/tests/error/named_union_global_private_static.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope. +#! [contains] can only be used at class scope. union static private { int i; } u; diff --git a/tests/error/named_union_global_static.gw b/tests/error/named_union_global_static.gw index 426ef577..704217b9 100644 --- a/tests/error/named_union_global_static.gw +++ b/tests/error/named_union_global_static.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope. +#! [contains] can only be used at class scope. union static { int i; } u; diff --git a/tests/error/negative_array.gw b/tests/error/negative_array.gw index b094b399..66a272cc 100644 --- a/tests/error/negative_array.gw +++ b/tests/error/negative_array.gw @@ -1,3 +1,3 @@ -// [contains] NegativeArraySize: while allocating arrays +#! [contains] NegativeArraySize: while allocating arrays int i[-1]; <<< i >>>; diff --git a/tests/error/negative_array2.gw b/tests/error/negative_array2.gw index d0646f7d..c7c868dc 100644 --- a/tests/error/negative_array2.gw +++ b/tests/error/negative_array2.gw @@ -1,4 +1,4 @@ -// [contains] ArrayOutofBounds +#! [contains] ArrayOutofBounds int i[2][2]; <<< i[1][-1] >>>; <<< -1 >>>; diff --git a/tests/error/new_empty_array.gw b/tests/error/new_empty_array.gw index 1655e517..80000dba 100644 --- a/tests/error/new_empty_array.gw +++ b/tests/error/new_empty_array.gw @@ -1,2 +1,2 @@ -// [contains] instantiate with empty +#! [contains] instantiate with empty new Object[]; diff --git a/tests/error/new_prim.gw b/tests/error/new_prim.gw index 00d30a12..dc7b6778 100644 --- a/tests/error/new_prim.gw +++ b/tests/error/new_prim.gw @@ -1,2 +1,2 @@ -// [contains] primitive types cannot be used as reference +#! [contains] primitive types cannot be used as reference new int; diff --git a/tests/error/no_cast.gw b/tests/error/no_cast.gw index 7cff67a0..c05a98b2 100644 --- a/tests/error/no_cast.gw +++ b/tests/error/no_cast.gw @@ -1,4 +1,4 @@ -// [contains] no match found for operator +#! [contains] no match found for operator class C{} class D{} diff --git a/tests/error/no_compat_sub.gw b/tests/error/no_compat_sub.gw index a32ed0cb..1ce8ae8e 100644 --- a/tests/error/no_compat_sub.gw +++ b/tests/error/no_compat_sub.gw @@ -1,4 +1,4 @@ -// [contains] must be of type 'int' +#! [contains] must be of type 'int' int i[4]; Object o; i[o]; diff --git a/tests/error/no_compat_sub2.gw b/tests/error/no_compat_sub2.gw index 96d75970..3473fab1 100644 --- a/tests/error/no_compat_sub2.gw +++ b/tests/error/no_compat_sub2.gw @@ -1,4 +1,4 @@ -// [contains] incompatible array subscript type +#! [contains] incompatible array subscript type Object o; int i[o]; <<< i >>>; diff --git a/tests/error/no_member.gw b/tests/error/no_member.gw index 17fcf802..6175713a 100644 --- a/tests/error/no_member.gw +++ b/tests/error/no_member.gw @@ -1,4 +1,4 @@ -// [contains] does not have members - invalid use in dot expression +#! [contains] does not have members - invalid use in dot expression int i; i.nothing; diff --git a/tests/error/non_function_template.gw b/tests/error/non_function_template.gw index 42d95502..78b28cca 100644 --- a/tests/error/non_function_template.gw +++ b/tests/error/non_function_template.gw @@ -1,3 +1,3 @@ -// [contains] template call of non-function value +#! [contains] template call of non-function value int test; test<~int~>(); diff --git a/tests/error/not_legit.gw b/tests/error/not_legit.gw index b3234447..ec026756 100644 --- a/tests/error/not_legit.gw +++ b/tests/error/not_legit.gw @@ -1,2 +1,2 @@ -// [contains] not legit +#! [contains] not legit s; diff --git a/tests/error/null_array_access.gw b/tests/error/null_array_access.gw index fdc5f823..7b1a534c 100644 --- a/tests/error/null_array_access.gw +++ b/tests/error/null_array_access.gw @@ -1,3 +1,3 @@ -// [contains] NullPtrException +#! [contains] NullPtrException int i[]; i[0]; diff --git a/tests/error/null_array_access_multi.gw b/tests/error/null_array_access_multi.gw index bd973cbd..03a570ba 100644 --- a/tests/error/null_array_access_multi.gw +++ b/tests/error/null_array_access_multi.gw @@ -1,3 +1,3 @@ -// [contains] NullPtrException +#! [contains] NullPtrException int i[][]; i[0][0]; diff --git a/tests/error/null_auto.gw b/tests/error/null_auto.gw index eb45296d..673ee992 100644 --- a/tests/error/null_auto.gw +++ b/tests/error/null_auto.gw @@ -1,4 +1,4 @@ -// [contains] NullPtrException +#! [contains] NullPtrException int i[]; for(auto a : i) <<< a >>>; diff --git a/tests/error/op_match.gw b/tests/error/op_match.gw index 25d3ebfd..9abaf80c 100644 --- a/tests/error/op_match.gw +++ b/tests/error/op_match.gw @@ -1,3 +1,3 @@ -// [contains] no match found for operator +#! [contains] no match found for operator Object o; null +=> o; diff --git a/tests/error/op_test.gw b/tests/error/op_test.gw index 3d236058..0d1777b3 100644 --- a/tests/error/op_test.gw +++ b/tests/error/op_test.gw @@ -1,4 +1,4 @@ -// [contains] no match found for operator +#! [contains] no match found for operator class C { diff --git a/tests/error/override_confict.gw b/tests/error/override_confict.gw index 72ece0d7..9b8eb68c 100644 --- a/tests/error/override_confict.gw +++ b/tests/error/override_confict.gw @@ -1,4 +1,4 @@ -// [contains] conflicts with previously defined value +#! [contains] conflicts with previously defined value class C { int test; diff --git a/tests/error/override_static.gw b/tests/error/override_static.gw index 47fa35f0..b7b1d4b8 100644 --- a/tests/error/override_static.gw +++ b/tests/error/override_static.gw @@ -1,4 +1,4 @@ -// [contains] but cannot override +#! [contains] but cannot override class C { fun static void test() {} diff --git a/tests/error/override_static2.gw b/tests/error/override_static2.gw index 4b326b83..7fdd71bf 100644 --- a/tests/error/override_static2.gw +++ b/tests/error/override_static2.gw @@ -1,4 +1,4 @@ -// [contains] but cannot override +#! [contains] but cannot override class C { fun void test() {} diff --git a/tests/error/pointer_outside_class.gw b/tests/error/pointer_outside_class.gw index 51c099c8..cd1c9327 100644 --- a/tests/error/pointer_outside_class.gw +++ b/tests/error/pointer_outside_class.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope +#! [contains] can only be used at class scope typedef static void my_fun(){} diff --git a/tests/error/pointer_unknown.gw b/tests/error/pointer_unknown.gw index d53fc486..66ddfcad 100644 --- a/tests/error/pointer_unknown.gw +++ b/tests/error/pointer_unknown.gw @@ -1,2 +1,2 @@ -// [contains] unknown type +#! [contains] unknown type typedef unknown_type my_fun(){} diff --git a/tests/error/pointer_unknown_arg.gw b/tests/error/pointer_unknown_arg.gw index 3d7ee93f..c3197721 100644 --- a/tests/error/pointer_unknown_arg.gw +++ b/tests/error/pointer_unknown_arg.gw @@ -1,2 +1,2 @@ -// [contains] unknown type +#! [contains] unknown type typedef void my_func(unknown_type type); diff --git a/tests/error/polar_invalid_mod.gw b/tests/error/polar_invalid_mod.gw index 2a7cccf6..3ecfc3a1 100644 --- a/tests/error/polar_invalid_mod.gw +++ b/tests/error/polar_invalid_mod.gw @@ -1,2 +1,2 @@ -// [contains] polar value #1 +#! [contains] polar value #1 %(null, 0); diff --git a/tests/error/polar_invalid_ph.gw b/tests/error/polar_invalid_ph.gw index acf44abf..44470ba0 100644 --- a/tests/error/polar_invalid_ph.gw +++ b/tests/error/polar_invalid_ph.gw @@ -1,2 +1,2 @@ -// [contains] polar value #2 +#! [contains] polar value #2 %(0, null); diff --git a/tests/error/polar_too_big.gw b/tests/error/polar_too_big.gw index cb91af9f..5ad3b535 100644 --- a/tests/error/polar_too_big.gw +++ b/tests/error/polar_too_big.gw @@ -1,2 +1,2 @@ -// [contains] extraneous component of polar value +#! [contains] extraneous component of polar value %(0,0,0,0); diff --git a/tests/error/postfix.gw b/tests/error/postfix.gw index c71b4842..dd59edcb 100644 --- a/tests/error/postfix.gw +++ b/tests/error/postfix.gw @@ -1,2 +1,2 @@ -// [contains] cannot be used on non-mutable data-type +#! [contains] cannot be used on non-mutable data-type 1++; diff --git a/tests/error/postfix_const.gw b/tests/error/postfix_const.gw index 63c5bb1a..76defe9a 100644 --- a/tests/error/postfix_const.gw +++ b/tests/error/postfix_const.gw @@ -1,2 +1,2 @@ -// [contains] cannot be used on non-mutable data-type +#! [contains] cannot be used on non-mutable data-type true++; diff --git a/tests/error/postfix_no_match.gw b/tests/error/postfix_no_match.gw index 8de5ab9f..f64c7982 100644 --- a/tests/error/postfix_no_match.gw +++ b/tests/error/postfix_no_match.gw @@ -1,3 +1,3 @@ -// [contains] no match found for operator +#! [contains] no match found for operator Object o; o++; diff --git a/tests/error/prim_parent.gw b/tests/error/prim_parent.gw index 25f9c40e..fe6f6b71 100644 --- a/tests/error/prim_parent.gw +++ b/tests/error/prim_parent.gw @@ -1,2 +1,2 @@ -// [contains] cannot extend primitive +#! [contains] cannot extend primitive class C extends int {} diff --git a/tests/error/prim_ref.gw b/tests/error/prim_ref.gw index 4a60e2d6..3e4b2930 100644 --- a/tests/error/prim_ref.gw +++ b/tests/error/prim_ref.gw @@ -1,2 +1,2 @@ -// [contains] primitive types cannot be used as reference +#! [contains] primitive types cannot be used as reference int @i; diff --git a/tests/error/private.gw b/tests/error/private.gw index e71b04db..87909a51 100644 --- a/tests/error/private.gw +++ b/tests/error/private.gw @@ -1,4 +1,4 @@ -// [contains] can't access private +#! [contains] can't access private class C { private int i; } C c; diff --git a/tests/error/private_func_call_out.gw b/tests/error/private_func_call_out.gw index a0e286e5..b2e66f02 100644 --- a/tests/error/private_func_call_out.gw +++ b/tests/error/private_func_call_out.gw @@ -1,4 +1,4 @@ -// [contains] can't access private +#! [contains] can't access private class C { fun private void test(){} } diff --git a/tests/error/private_func_nocall_out.gw b/tests/error/private_func_nocall_out.gw index 686c54b2..5c090166 100644 --- a/tests/error/private_func_nocall_out.gw +++ b/tests/error/private_func_nocall_out.gw @@ -1,4 +1,4 @@ -// [contains] can't access private +#! [contains] can't access private class C { fun private void test(){} } diff --git a/tests/error/private_func_out.gw b/tests/error/private_func_out.gw index 1d88460c..f87a5235 100644 --- a/tests/error/private_func_out.gw +++ b/tests/error/private_func_out.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope +#! [contains] can only be used at class scope fun private void test(){} diff --git a/tests/error/private_global.gw b/tests/error/private_global.gw index 7be2bb35..b656e00b 100644 --- a/tests/error/private_global.gw +++ b/tests/error/private_global.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope +#! [contains] can only be used at class scope private int i; diff --git a/tests/error/private_other.gw b/tests/error/private_other.gw index ee7d52ee..f9ab4063 100644 --- a/tests/error/private_other.gw +++ b/tests/error/private_other.gw @@ -1,4 +1,4 @@ -// [contains] can't access private +#! [contains] can't access private class C { private int i; } class D { diff --git a/tests/error/provide_array.gw b/tests/error/provide_array.gw index 20b4b5b1..b25cdc5a 100644 --- a/tests/error/provide_array.gw +++ b/tests/error/provide_array.gw @@ -1,2 +1,2 @@ -// [contains] must provide values/expressions for array +#! [contains] must provide values/expressions for array [ ]; diff --git a/tests/error/ptr_arg_0_size.gw b/tests/error/ptr_arg_0_size.gw index c9765c94..1f0229b6 100644 --- a/tests/error/ptr_arg_0_size.gw +++ b/tests/error/ptr_arg_0_size.gw @@ -1,2 +1,2 @@ -// [contains] cannot declare variables of size '0' +#! [contains] cannot declare variables of size '0' typedef void my_func(void arg){} diff --git a/tests/error/ptr_arg_array.gw b/tests/error/ptr_arg_array.gw index b4eef2ec..ba2ca796 100644 --- a/tests/error/ptr_arg_array.gw +++ b/tests/error/ptr_arg_array.gw @@ -1,2 +1,2 @@ -// [contains] must be defined with empty +#! [contains] must be defined with empty typedef void my_func (int i[4]){} diff --git a/tests/error/ptr_assign_global.gw b/tests/error/ptr_assign_global.gw index 17038c96..1f5e985e 100644 --- a/tests/error/ptr_assign_global.gw +++ b/tests/error/ptr_assign_global.gw @@ -1,4 +1,4 @@ -// [contains] can't assign non member function to member function pointer +#! [contains] can't assign non member function to member function pointer class C { typedef void Test(); Test test; diff --git a/tests/error/ptr_assign_member.gw b/tests/error/ptr_assign_member.gw index fa68cf44..b97d13ed 100644 --- a/tests/error/ptr_assign_member.gw +++ b/tests/error/ptr_assign_member.gw @@ -1,4 +1,4 @@ -// [contains] can't assign member function to non member function pointer +#! [contains] can't assign member function to non member function pointer typedef void Test(); Test test; class D { diff --git a/tests/error/ptr_assign_other.gw b/tests/error/ptr_assign_other.gw index ca2caa5c..4b3e5ee1 100644 --- a/tests/error/ptr_assign_other.gw +++ b/tests/error/ptr_assign_other.gw @@ -1,4 +1,4 @@ -// [contains] can't assign member function to a pointer of an other class +#! [contains] can't assign member function to a pointer of an other class class C { typedef void Test(); Test test; diff --git a/tests/error/ptr_defined.gw b/tests/error/ptr_defined.gw index 99bcf9e7..bfb6abf1 100644 --- a/tests/error/ptr_defined.gw +++ b/tests/error/ptr_defined.gw @@ -1,3 +1,3 @@ -// [contains] has already been defined in the same scope +#! [contains] has already been defined in the same scope int i; typedef void i(){} diff --git a/tests/error/ptr_no_match.gw b/tests/error/ptr_no_match.gw index 0dc5b75d..00258008 100644 --- a/tests/error/ptr_no_match.gw +++ b/tests/error/ptr_no_match.gw @@ -1,4 +1,4 @@ -// [contains] no match found +#! [contains] no match found fun void test(int i){} fun void test(float f){} diff --git a/tests/error/ptr_ref_prim.gw b/tests/error/ptr_ref_prim.gw index 4216fe4c..d550dc30 100644 --- a/tests/error/ptr_ref_prim.gw +++ b/tests/error/ptr_ref_prim.gw @@ -1,2 +1,2 @@ -// [contains] primitive types cannot be used as reference +#! [contains] primitive types cannot be used as reference typedef void my_func(int @i){} diff --git a/tests/error/ptr_static_outside.gw b/tests/error/ptr_static_outside.gw index e2ba117b..c9a3497e 100644 --- a/tests/error/ptr_static_outside.gw +++ b/tests/error/ptr_static_outside.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope +#! [contains] can only be used at class scope typedef static void Test(); diff --git a/tests/error/ptr_static_outside2.gw b/tests/error/ptr_static_outside2.gw index d4a6c152..8d81b3b7 100644 --- a/tests/error/ptr_static_outside2.gw +++ b/tests/error/ptr_static_outside2.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope +#! [contains] can only be used at class scope typedef static void Test(int i); diff --git a/tests/error/recursive_class_def.gw b/tests/error/recursive_class_def.gw index 18bfe4fa..7d78cac3 100644 --- a/tests/error/recursive_class_def.gw +++ b/tests/error/recursive_class_def.gw @@ -1,4 +1,4 @@ -// [contains] recursive +#! [contains] recursive class C {} class D extends C {} class E extends F {} diff --git a/tests/error/return_out.gw b/tests/error/return_out.gw index 2535c861..10f4c645 100644 --- a/tests/error/return_out.gw +++ b/tests/error/return_out.gw @@ -1,2 +1,2 @@ -// [contains] 'return' statement found outside function definition +#! [contains] 'return' statement found outside function definition return; diff --git a/tests/error/right_mutable.gw b/tests/error/right_mutable.gw index 9b1d870c..af135749 100644 --- a/tests/error/right_mutable.gw +++ b/tests/error/right_mutable.gw @@ -1,2 +1,2 @@ -// [contains] right-side operand is non-mutable +#! [contains] right-side operand is non-mutable 2 => 1; diff --git a/tests/error/spork_non_func.gw b/tests/error/spork_non_func.gw index 6dba49f2..96f996db 100644 --- a/tests/error/spork_non_func.gw +++ b/tests/error/spork_non_func.gw @@ -1,4 +1,4 @@ -// [contains] only function calls can be sporked +#! [contains] only function calls can be sporked int i; <<< i >>>; spork i; diff --git a/tests/error/static_out.gw b/tests/error/static_out.gw index 11b948d1..294b07ef 100644 --- a/tests/error/static_out.gw +++ b/tests/error/static_out.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope +#! [contains] can only be used at class scope static int i; diff --git a/tests/error/stray.gw b/tests/error/stray.gw index d1c26270..ca84fac1 100644 --- a/tests/error/stray.gw +++ b/tests/error/stray.gw @@ -1,2 +1,2 @@ -// [contains somewhere] stray in program +#! [contains somewhere] stray in program **µ diff --git a/tests/error/template_class_no_type.gw b/tests/error/template_class_no_type.gw index fd81f4ed..40b87094 100644 --- a/tests/error/template_class_no_type.gw +++ b/tests/error/template_class_no_type.gw @@ -1,4 +1,4 @@ -// [contains] you must provide template types +#! [contains] you must provide template types class<~A~> C { A a; } diff --git a/tests/error/template_enough.gw b/tests/error/template_enough.gw index af3391ac..2c0cef0e 100644 --- a/tests/error/template_enough.gw +++ b/tests/error/template_enough.gw @@ -1,3 +1,3 @@ -// [contains] +#! [contains] fun void test<~A,B~>(){} test(); diff --git a/tests/error/template_n_mismatch.gw b/tests/error/template_n_mismatch.gw index dbd9a538..74b77c72 100644 --- a/tests/error/template_n_mismatch.gw +++ b/tests/error/template_n_mismatch.gw @@ -1,6 +1,6 @@ -// [contains] arguments do not match for template call +#! [contains] arguments do not match for template call fun void test<~A~>(){ <<< "func" >>>;} fun void test<~A~>(int i){<<< "other func" >>>;} test<~int, float, int~>(); -//test<~int~>(); +#!test<~int~>(); diff --git a/tests/error/template_no_match.gw b/tests/error/template_no_match.gw index 0868e24a..82fef43a 100644 --- a/tests/error/template_no_match.gw +++ b/tests/error/template_no_match.gw @@ -1,9 +1,9 @@ -// [contains] arguments do not match for template call +#! [contains] arguments do not match for template call class C { fun void test<~A~>(float f) {} fun void test<~A~>() {} } C c; -//c.test<~int~>(); +#!c.test<~int~>(); c.test<~int~>(2.3); c.test<~int~>(2.3, 2.3); diff --git a/tests/error/template_non_member.gw b/tests/error/template_non_member.gw index 1d287d6b..6f6f232d 100644 --- a/tests/error/template_non_member.gw +++ b/tests/error/template_non_member.gw @@ -1,2 +1,2 @@ -// [contains] +#! [contains] Math.rand<~int~>(); diff --git a/tests/error/template_ternary.gw b/tests/error/template_ternary.gw index 6b99bf58..5c1e04d5 100644 --- a/tests/error/template_ternary.gw +++ b/tests/error/template_ternary.gw @@ -1,4 +1,4 @@ -// [contains] invalid expression for function call +#! [contains] invalid expression for function call fun void test<~A~>(A a){} (maybe ? test : test)(1); diff --git a/tests/error/template_unknown.gw b/tests/error/template_unknown.gw index f9d96219..e9009fe1 100644 --- a/tests/error/template_unknown.gw +++ b/tests/error/template_unknown.gw @@ -1,4 +1,4 @@ -// [contains] unknown type +#! [contains] unknown type fun void my_function<~A~>() { <<< "test" >>>; } my_function<~unknown_type~>(); diff --git a/tests/error/this.gw b/tests/error/this.gw index be8ec7c8..1ba2b0f3 100644 --- a/tests/error/this.gw +++ b/tests/error/this.gw @@ -1,2 +1,2 @@ -// [contains] keyword 'this' can be used only inside class definition +#! [contains] keyword 'this' can be used only inside class definition this; diff --git a/tests/error/this_instance.gw b/tests/error/this_instance.gw index a1eed8be..8822e8e0 100644 --- a/tests/error/this_instance.gw +++ b/tests/error/this_instance.gw @@ -1,3 +1,3 @@ -// [contains] keyword 'this' must be associated with object instance +#! [contains] keyword 'this' must be associated with object instance class C {} C.this; diff --git a/tests/error/this_static.gw b/tests/error/this_static.gw index 8483049b..8c0c1766 100644 --- a/tests/error/this_static.gw +++ b/tests/error/this_static.gw @@ -1,4 +1,4 @@ -// [contains] keyword 'this' cannot be used inside static functions +#! [contains] keyword 'this' cannot be used inside static functions class C { fun static void test(){ <<< this >>>; } diff --git a/tests/error/type_not_template.gw b/tests/error/type_not_template.gw index 4436e0d4..adbbf23c 100644 --- a/tests/error/type_not_template.gw +++ b/tests/error/type_not_template.gw @@ -1,2 +1,2 @@ -// [contains] is not template +#! [contains] is not template <~int~>Object o; diff --git a/tests/error/type_path_test.gw b/tests/error/type_path_test.gw index 1e255e09..a12af900 100644 --- a/tests/error/type_path_test.gw +++ b/tests/error/type_path_test.gw @@ -1,2 +1,2 @@ -// [contains] unknown type +#! [contains] unknown type fun void test(B->C a){} diff --git a/tests/error/unary_times.gw b/tests/error/unary_times.gw index d5626a17..4c296607 100644 --- a/tests/error/unary_times.gw +++ b/tests/error/unary_times.gw @@ -1,3 +1,3 @@ -// [contains] no match found for operator +#! [contains] no match found for operator int i; *i; diff --git a/tests/error/undef_parent.gw b/tests/error/undef_parent.gw index 47a83ed3..228a53ad 100644 --- a/tests/error/undef_parent.gw +++ b/tests/error/undef_parent.gw @@ -1,4 +1,4 @@ -// [contains] unknown type +#! [contains] unknown type class C extends Undefined {} C c; <<< c >>>; \ No newline at end of file diff --git a/tests/error/union.gw b/tests/error/union.gw index 1b89e8e1..2987f24e 100644 --- a/tests/error/union.gw +++ b/tests/error/union.gw @@ -1,4 +1,4 @@ -// [contains] +#! [contains] union { one; two; diff --git a/tests/error/union_array_empty.gw b/tests/error/union_array_empty.gw index e1264e20..cfc880ea 100644 --- a/tests/error/union_array_empty.gw +++ b/tests/error/union_array_empty.gw @@ -1,4 +1,4 @@ -// [contains] must be defined with empty +#! [contains] must be defined with empty union { int i; int @array[4]; diff --git a/tests/error/union_global_private.gw b/tests/error/union_global_private.gw index 8de35d31..188ecb23 100644 --- a/tests/error/union_global_private.gw +++ b/tests/error/union_global_private.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope. +#! [contains] can only be used at class scope. union static { int i; }; diff --git a/tests/error/union_global_private_static.gw b/tests/error/union_global_private_static.gw index 2564afc9..d1661269 100644 --- a/tests/error/union_global_private_static.gw +++ b/tests/error/union_global_private_static.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope. +#! [contains] can only be used at class scope. union static private { int i; }; diff --git a/tests/error/union_global_static.gw b/tests/error/union_global_static.gw index c9fb1065..76f37242 100644 --- a/tests/error/union_global_static.gw +++ b/tests/error/union_global_static.gw @@ -1,2 +1,2 @@ -// [contains] can only be used at class scope. +#! [contains] can only be used at class scope. union private { int i; }; diff --git a/tests/error/union_invalid.gw b/tests/error/union_invalid.gw index 4ea2c658..b170fa0f 100644 --- a/tests/error/union_invalid.gw +++ b/tests/error/union_invalid.gw @@ -1,4 +1,4 @@ -// [contains] Unions should only contain declarations +#! [contains] Unions should only contain declarations union { one; two; diff --git a/tests/error/union_object_ref.gw b/tests/error/union_object_ref.gw index 5e626dbf..e006098d 100644 --- a/tests/error/union_object_ref.gw +++ b/tests/error/union_object_ref.gw @@ -1,4 +1,4 @@ -// [contains] In union, Objects must be declared as reference (use '@') +#! [contains] In union, Objects must be declared as reference (use '@') union { int i; diff --git a/tests/error/union_unknown.gw b/tests/error/union_unknown.gw index 857977ad..b40d7d8b 100644 --- a/tests/error/union_unknown.gw +++ b/tests/error/union_unknown.gw @@ -1,4 +1,4 @@ -// [contains] unknown_type +#! [contains] unknown_type union { unknown_type unknown_variable; diff --git a/tests/error/unknown_escape.gw b/tests/error/unknown_escape.gw index 9cdf4e7e..bf9dc2b6 100644 --- a/tests/error/unknown_escape.gw +++ b/tests/error/unknown_escape.gw @@ -1,2 +1,2 @@ -// (contains] unrecognized escape sequence +#! (contains] unrecognized escape sequence '\o'; diff --git a/tests/error/unknown_new.gw b/tests/error/unknown_new.gw index 9ced64fe..b925ca4d 100644 --- a/tests/error/unknown_new.gw +++ b/tests/error/unknown_new.gw @@ -1,2 +1,2 @@ -// [contains] unknown type +#! [contains] unknown type new kugsqd; diff --git a/tests/error/unknown_type.gw b/tests/error/unknown_type.gw index ed9a31d0..92c1f3fa 100644 --- a/tests/error/unknown_type.gw +++ b/tests/error/unknown_type.gw @@ -1,3 +1,3 @@ -// [contains] unknown type - // hit the error with an unknown type +#! [contains] unknown type + #! hit the error with an unknown type unknown_type variable; diff --git a/tests/error/upper_label.gw b/tests/error/upper_label.gw index 286df405..e4da9b19 100644 --- a/tests/error/upper_label.gw +++ b/tests/error/upper_label.gw @@ -1,3 +1,3 @@ -// [contains] you are trying to use a upper label +#! [contains] you are trying to use a upper label end: goto end; diff --git a/tests/error/var_defined.gw b/tests/error/var_defined.gw index 2a4f05c9..51811b01 100644 --- a/tests/error/var_defined.gw +++ b/tests/error/var_defined.gw @@ -1,3 +1,3 @@ -// [contains] has already been defined in the same scope +#! [contains] has already been defined in the same scope int i; int i; diff --git a/tests/error/variadic_end_no_start.gw b/tests/error/variadic_end_no_start.gw index 8c159c81..89aed11f 100644 --- a/tests/error/variadic_end_no_start.gw +++ b/tests/error/variadic_end_no_start.gw @@ -1,7 +1,7 @@ -// [contains] vararg.start not used before vararg.end. this is an error +#! [contains] vararg.start not used before vararg.end. this is an error fun void test(int i, ...) { vararg.end; -// vararg.start; +#! vararg.start; } test(1, 2.3, null); diff --git a/tests/error/variadic_start_twice.gw b/tests/error/variadic_start_twice.gw index ff87db0e..59e93491 100644 --- a/tests/error/variadic_start_twice.gw +++ b/tests/error/variadic_start_twice.gw @@ -1,2 +1,2 @@ -// [contains] vararg.start already used. this is an error +#! [contains] vararg.start already used. this is an error fun void test(...) { vararg.start; vararg.start;} diff --git a/tests/error/variadic_test.gw b/tests/error/variadic_test.gw index 8c159c81..89aed11f 100644 --- a/tests/error/variadic_test.gw +++ b/tests/error/variadic_test.gw @@ -1,7 +1,7 @@ -// [contains] vararg.start not used before vararg.end. this is an error +#! [contains] vararg.start not used before vararg.end. this is an error fun void test(int i, ...) { vararg.end; -// vararg.start; +#! vararg.start; } test(1, 2.3, null); diff --git a/tests/error/vector_invalid.gw b/tests/error/vector_invalid.gw index e540248e..f14ca9ce 100644 --- a/tests/error/vector_invalid.gw +++ b/tests/error/vector_invalid.gw @@ -1,2 +1,2 @@ -// [contains] in vector value +#! [contains] in vector value @(0,0,0,null); diff --git a/tests/error/vector_too_big.gw b/tests/error/vector_too_big.gw index 639b0f91..0d5eb436 100644 --- a/tests/error/vector_too_big.gw +++ b/tests/error/vector_too_big.gw @@ -1,2 +1,2 @@ -// [contains] extraneous component of +#! [contains] extraneous component of @(0,0,0,0,0); diff --git a/tests/error/without_instance.gw b/tests/error/without_instance.gw index 9247edb9..92fc4ec0 100644 --- a/tests/error/without_instance.gw +++ b/tests/error/without_instance.gw @@ -1,4 +1,4 @@ -// [contains] cannot access member +#! [contains] cannot access member class C { int i; } diff --git a/tests/fptr/class_ptr01.gw b/tests/fptr/class_ptr01.gw index 04df1a4e..0bc05495 100644 --- a/tests/fptr/class_ptr01.gw +++ b/tests/fptr/class_ptr01.gw @@ -1,4 +1,4 @@ -//[contains] cant't assign +#![contains] cant't assign class C { fun static void test(int i) { <<< "int arg" >>>; } typedef void PtrType(int i); diff --git a/tests/fptr/class_ptr31.gw b/tests/fptr/class_ptr31.gw index 46ebf444..f09a5a01 100644 --- a/tests/fptr/class_ptr31.gw +++ b/tests/fptr/class_ptr31.gw @@ -1,4 +1,4 @@ -// [contains] can't assign +#! [contains] can't assign class C { fun void test(int i) { <<< "int arg" >>>; } typedef static void PtrType(int i); diff --git a/tests/import/callback2.gw b/tests/import/callback2.gw index 91f4f5cb..ef2ea3be 100644 --- a/tests/import/callback2.gw +++ b/tests/import/callback2.gw @@ -1,14 +1,14 @@ fun Vec4 test(int i) { <<< "test with arg ", i >>>; } -//typedef Vec4 PT(); -//test @=> +#!typedef Vec4 PT(); +#!test @=> PtrTypeI p; test @=> p; -//test @=> PT ti; +#!test @=> PT ti; <<< test >>>; -//<<< ti >>>; +#!<<< ti >>>; <<< p >>>; -//ti(); +#!ti(); <<< "test" >>>; p(2); <<< "end" >>>; diff --git a/tests/import/class_template.gw b/tests/import/class_template.gw index 24a29c2c..cc6dc083 100644 --- a/tests/import/class_template.gw +++ b/tests/import/class_template.gw @@ -1,15 +1,15 @@ -//class child {} -//template<~A, B~> -//class C{ A key; B value; } -//<~int, int~>C c1; -//C c2; -//<<< c1 >>>; -//<<< c2 >>>; -//<<< c2.value >>>; +#!class child {} +#!template<~A, B~> +#!class C{ A key; B value; } +#!<~int, int~>C c1; +#!C c2; +#!<<< c1 >>>; +#!<<< c2 >>>; +#!<<< c2.value >>>; <~int, int~>ClassTemplate ct; <<< ct.key >>>; -//ClassTemplate ct2; -//<<< ct2.key >>>; -//ClassTemplate ct3; -//<<< ct3.key >>>; +#!ClassTemplate ct2; +#!<<< ct2.key >>>; +#!ClassTemplate ct3; +#!<<< ct3.key >>>; diff --git a/tests/import/enum.gw b/tests/import/enum.gw index 368151d5..0d8ddb59 100644 --- a/tests/import/enum.gw +++ b/tests/import/enum.gw @@ -1,4 +1,4 @@ -// untyped global enum +#! untyped global enum <<< ENUM0 >>>; <<< ENUM1 >>>; <<< ENUM2 >>>; @@ -10,7 +10,7 @@ <<< ENUM8 >>>; <<< ENUM9 >>>; -// typed global enum +#! typed global enum <<< TYPED_ENUM0 >>>; <<< TYPED_ENUM1 >>>; <<< TYPED_ENUM2 >>>; @@ -22,8 +22,8 @@ <<< TYPED_ENUM8 >>>; <<< TYPED_ENUM9 >>>; -// in class -// untyped global enum +#! in class +#! untyped global enum <<< Enum.ENUM0 >>>; <<< Enum.ENUM1 >>>; <<< Enum.ENUM2 >>>; @@ -35,7 +35,7 @@ <<< Enum.ENUM8 >>>; <<< Enum.ENUM9 >>>; -// Enum.typed global enum +#! Enum.typed global enum <<< Enum.TYPED_ENUM0 >>>; <<< Enum.TYPED_ENUM1 >>>; <<< Enum.TYPED_ENUM2 >>>; diff --git a/tests/import/static_string.gw b/tests/import/static_string.gw index 60da0664..dc3f911a 100644 --- a/tests/import/static_string.gw +++ b/tests/import/static_string.gw @@ -1,2 +1,2 @@ -//<<< StaticString.self >>>; +#!<<< StaticString.self >>>; <<< self >>>; diff --git a/tests/new/break.gw b/tests/new/break.gw index d3f5f2be..359bab68 100644 --- a/tests/new/break.gw +++ b/tests/new/break.gw @@ -4,10 +4,10 @@ fun void t(int i) { 1/i; <<< "id: ", (spork t(i-1)).id() >>>; me.yield(); -//samp => now; +#!samp => now; } 10 => t; -//me.yield(); +#!me.yield(); second => now; me.yield(); <<< "end" >>>; diff --git a/tests/new/global_func0.gw b/tests/new/global_func0.gw index 2773c4fd..ee373b2e 100644 --- a/tests/new/global_func0.gw +++ b/tests/new/global_func0.gw @@ -6,6 +6,6 @@ class global C { global C g_c; <<< g_c, "->i => ", g_c.i >>>; fun global void g_test() { <<< g_i >>>; <<< g_c >>>; <<< g_c.i >>>; <<< "test" >>>; } -//fun global void g_test() { <<< "test" >>>; } +#!fun global void g_test() { <<< "test" >>>; } <<< g_test >>>; <<< g_test() >>>; diff --git a/tests/new/global_func1.gw b/tests/new/global_func1.gw index e6935d9c..c12ad16d 100644 --- a/tests/new/global_func1.gw +++ b/tests/new/global_func1.gw @@ -4,5 +4,5 @@ <<< g_test >>>; g_test(); -//g_test(); -//g_test(); +#!g_test(); +#!g_test(); diff --git a/tests/new/lambda.gw b/tests/new/lambda.gw index 83b2a3b3..8481c1c0 100644 --- a/tests/new/lambda.gw +++ b/tests/new/lambda.gw @@ -1,32 +1,32 @@ class C { typedef void ptr_t(int i,int j); \a b { <<< this, " ", a, " ", b, " test" >>>; } @=> ptr_t ptr; -// `a,b` { <<< "test" >>>; } @=> -// ptr_t ptr; -// ptr(1,2); +#! `a,b` { <<< "test" >>>; } @=> +#! ptr_t ptr; +#! ptr(1,2); fun void test(int i, int j) { <<< this, " ", i, " ", j >>>; } -// fun void test(ptr_t t, int i) { -//<<< t >>>; -// t(2,i); -// } -// test(`a,b` { <<< this, " lambda argument" >>>; }, 2); +#! fun void test(ptr_t t, int i) { +#!<<< t >>>; +#! t(2,i); +#! } +#! test(`a,b` { <<< this, " lambda argument" >>>; }, 2); } -//<<< C c >>>; +#!<<< C c >>>; C c; <<< c >>>; -//<<< c.test >>>; -//<<< c.ptr >>>; -//c.ptr(1,2); -//<<< c.test >>>; +#!<<< c.test >>>; +#!<<< c.ptr >>>; +#!c.ptr(1,2); +#!<<< c.test >>>; c.test @=> c.ptr; -//c.ptr; -//<<< c.ptr >>>; -//c.test(1,2); +#!c.ptr; +#!<<< c.ptr >>>; +#!c.test(1,2); c.ptr(1, 2); -//c.ptr(1, 2); -//c.ptr(1, 2); -//(1,2) => c.ptr; -//c.test(`a,b` { <<< this, "lambda argument" >>>; }, 2); -//c.test(c.ptr, 2); -//<<< c.ptr >>>; -//c.ptr; +#!c.ptr(1, 2); +#!c.ptr(1, 2); +#!(1,2) => c.ptr; +#!c.test(`a,b` { <<< this, "lambda argument" >>>; }, 2); +#!c.test(c.ptr, 2); +#!<<< c.ptr >>>; +#!c.ptr; diff --git a/tests/new/lambda2.gw b/tests/new/lambda2.gw index e8a0474c..0ad67254 100644 --- a/tests/new/lambda2.gw +++ b/tests/new/lambda2.gw @@ -2,18 +2,18 @@ class C { typedef void ptr_t(int i); \a { <<< this, " ", a >>>; } @=> ptr_t ptr; -//ptr(3); +#!ptr(3); fun void t1(int i) { <<< this, " t1 ", i >>>; } fun void test(ptr_t ptr) { <<< this >>>; ptr(1); } t1 @=> ptr_t t1p; -//test(t1$ptr_t); +#!test(t1$ptr_t); test(t1p); -//test(ptr); -//<<< t1 >>>; -//<<< t1$ptr_t >>>; +#!test(ptr); +#!<<< t1 >>>; +#!<<< t1$ptr_t >>>; } <<< C c >>>; <<< c.test(c.ptr) >>>; diff --git a/tests/new/spork.gw b/tests/new/spork.gw index 6003f577..da3462e6 100644 --- a/tests/new/spork.gw +++ b/tests/new/spork.gw @@ -1,6 +1,6 @@ fun void _t() { <<< __func__ >>>; } fun int t() { -//<<< 1 >>>; +#!<<< 1 >>>; spork _t(); spork \a{ <<< __func__, " ", a >>>; }(1); diff --git a/tests/new/spork_in_func.gw b/tests/new/spork_in_func.gw index 2aebdf88..88b852ec 100644 --- a/tests/new/spork_in_func.gw +++ b/tests/new/spork_in_func.gw @@ -1,6 +1,6 @@ fun void test() { -// <<< 1 >>>; -//spork \{<<< 2 >>>;}(); +#! <<< 1 >>>; +#!spork \{<<< 2 >>>;}(); } test(); test(); diff --git a/tests/new/stackov.gw b/tests/new/stackov.gw index 7c197ad2..1fffc758 100644 --- a/tests/new/stackov.gw +++ b/tests/new/stackov.gw @@ -10,7 +10,7 @@ fun void launch(int i) { } spork launch(2); -//second => now; +#!second => now; me.yield(); -//.1::samp => now; +#!.1::samp => now; launch(12); diff --git a/tests/new/stackov2.gw b/tests/new/stackov2.gw index 8b948eea..06767a7d 100644 --- a/tests/new/stackov2.gw +++ b/tests/new/stackov2.gw @@ -1,5 +1,5 @@ fun void launch(int i) { <<< " launch ", i >>>; } -//spork launch(2); +#!spork launch(2); me.yield(); diff --git a/tests/new/static.gw b/tests/new/static.gw index 5ccef63d..3503c334 100644 --- a/tests/new/static.gw +++ b/tests/new/static.gw @@ -1,4 +1,4 @@ class C { fun static C t() { C c; <<< c, " something" >>>; return c; } } -//C c; +#!C c; <<< C.t() >>>; diff --git a/tests/pp/already_defined.gw b/tests/pp/already_defined.gw index 95aa6234..a7de5d34 100644 --- a/tests/pp/already_defined.gw +++ b/tests/pp/already_defined.gw @@ -1,3 +1,3 @@ -//[contains] macro already defined +#![contains] macro already defined #define macro #define macro diff --git a/tests/pp/call_not_enough.gw b/tests/pp/call_not_enough.gw index 94e5b7dd..404c3e5c 100644 --- a/tests/pp/call_not_enough.gw +++ b/tests/pp/call_not_enough.gw @@ -1,3 +1,3 @@ -//[contains] not enough arguments +#![contains] not enough arguments #define macro(a, b) a, b <<< macro(1) >>>; diff --git a/tests/pp/call_too_many.gw b/tests/pp/call_too_many.gw index e29f4726..72753f9e 100644 --- a/tests/pp/call_too_many.gw +++ b/tests/pp/call_too_many.gw @@ -1,3 +1,3 @@ -//[contains] too many arguments +#![contains] too many arguments #define macro(a) a <<< macro(1,2) >>>; diff --git a/tests/pp/conditional.gw b/tests/pp/conditional.gw index 30be49b6..8ba5dcc5 100644 --- a/tests/pp/conditional.gw +++ b/tests/pp/conditional.gw @@ -1,5 +1,5 @@ -//[contains] 'macro' defined" -//[contains] 'macro' undefined (after undefining)" +#![contains] 'macro' defined" +#![contains] 'macro' undefined (after undefining)" #define macro #ifdef macro <<< "'macro' defined" >>>; diff --git a/tests/pp/define_empty.gw b/tests/pp/define_empty.gw index 754c7b08..4bce1e10 100644 --- a/tests/pp/define_empty.gw +++ b/tests/pp/define_empty.gw @@ -1,4 +1,4 @@ -//[contains] end of text +#![contains] end of text #define macro macro diff --git a/tests/pp/define_empty_args.gw b/tests/pp/define_empty_args.gw index 2eeeec08..81e39aef 100644 --- a/tests/pp/define_empty_args.gw +++ b/tests/pp/define_empty_args.gw @@ -1,4 +1,4 @@ -//[contains] end of test +#![contains] end of test #define macro(a,b) macro(1,2); diff --git a/tests/pp/define_empty_vararg.gw b/tests/pp/define_empty_vararg.gw index a096c61b..ae6fd2b3 100644 --- a/tests/pp/define_empty_vararg.gw +++ b/tests/pp/define_empty_vararg.gw @@ -1,3 +1,3 @@ -//[contains] 123 +#![contains] 123 #define macro(...) __VA_ARGS__ <<< macro(1,2,3) >>>; diff --git a/tests/pp/define_text.gw b/tests/pp/define_text.gw index d91f89e2..e7431071 100644 --- a/tests/pp/define_text.gw +++ b/tests/pp/define_text.gw @@ -1,3 +1,3 @@ -//[contains] test +#![contains] test #define macro "test" <<< macro >>>; diff --git a/tests/pp/define_text_args.gw b/tests/pp/define_text_args.gw index 82171662..eac94955 100644 --- a/tests/pp/define_text_args.gw +++ b/tests/pp/define_text_args.gw @@ -1,3 +1,3 @@ -//[contains] test12 +#![contains] test12 #define macro(a,b) "test", a, b <<< macro(1,2) >>>; diff --git a/tests/pp/file_not_found.gw b/tests/pp/file_not_found.gw index bef1377d..b1814a22 100644 --- a/tests/pp/file_not_found.gw +++ b/tests/pp/file_not_found.gw @@ -1,2 +1,2 @@ -//[contains] file not found +#![contains] file not found #include diff --git a/tests/pp/include.gw b/tests/pp/include.gw index 4bc3a313..608ce297 100644 --- a/tests/pp/include.gw +++ b/tests/pp/include.gw @@ -1,2 +1,2 @@ -//[contains] tests/pp/header.gw +#![contains] tests/pp/header.gw #include diff --git a/tests/pp/undefined_macro.gw b/tests/pp/undefined_macro.gw index 7a9a7efa..f6d764a3 100644 --- a/tests/pp/undefined_macro.gw +++ b/tests/pp/undefined_macro.gw @@ -1,2 +1,2 @@ -//[contains] undefined macro +#![contains] undefined macro #undef macro diff --git a/tests/tree/ast_doc.gw b/tests/tree/ast_doc.gw index 8601f0f5..3832cefa 100644 --- a/tests/tree/ast_doc.gw +++ b/tests/tree/ast_doc.gw @@ -1,3 +1,3 @@ int i; <<< i >>>; -//! document the AST +#!! document the AST diff --git a/tests/tree/cast_test.gw b/tests/tree/cast_test.gw index 6bda1429..c7c0fe73 100644 --- a/tests/tree/cast_test.gw +++ b/tests/tree/cast_test.gw @@ -9,7 +9,7 @@ D d; E e; F f; G g; -//<<< f $ D >>>; +#!<<< f $ D >>>; <<< [ f, g ] >>>; <<< maybe ? f : D >>>; <<< c, " ", d, " ", e, " ", g >>>; diff --git a/tests/tree/class_dot.gw b/tests/tree/class_dot.gw index 829c06bc..f4437f8c 100644 --- a/tests/tree/class_dot.gw +++ b/tests/tree/class_dot.gw @@ -1,8 +1,8 @@ class C { int i[]; int j[2]; -// Machine.shreds() @=> i; -// null @=> i; +#! Machine.shreds() @=> i; +#! null @=> i; } C c; diff --git a/tests/tree/class_template.gw b/tests/tree/class_template.gw index ca6b1437..c53724e6 100644 --- a/tests/tree/class_template.gw +++ b/tests/tree/class_template.gw @@ -9,13 +9,13 @@ class<~A,B~> C { } } -//<<< C >>>; +#!<<< C >>>; <~int, int~>C c; <~float, int~>C d; <~polar, int~>C e; <~Vec3, int~>C f; <~Object, int~>C g; -//C c; +#!C c; <<< c.a >>>; <<< d.a >>>; <<< e.a >>>; diff --git a/tests/tree/dot.gw b/tests/tree/dot.gw index 20d0fed4..c46e379b 100644 --- a/tests/tree/dot.gw +++ b/tests/tree/dot.gw @@ -1,3 +1,3 @@ int i[]; Machine.shreds() @=> i; -//null @=> i; +#!null @=> i; diff --git a/tests/tree/false.gw b/tests/tree/false.gw index 838cff46..24e79a71 100644 --- a/tests/tree/false.gw +++ b/tests/tree/false.gw @@ -1,2 +1,2 @@ -// always return 0 +#! always return 0 <<< false >>>; diff --git a/tests/tree/member_op.gw b/tests/tree/member_op.gw index 3d39b169..10232855 100644 --- a/tests/tree/member_op.gw +++ b/tests/tree/member_op.gw @@ -1,9 +1,9 @@ class C { operator => void(C c, int i){<<< c, " ", i >>>;} -// this => this; -//fun void test_op(C c){ this => c; } +#! this => this; +#!fun void test_op(C c){ this => c; } this => int i; } C c; -//c.test_op(c); +#!c.test_op(c); diff --git a/tests/tree/protect.gw b/tests/tree/protect.gw index b317f599..43068202 100644 --- a/tests/tree/protect.gw +++ b/tests/tree/protect.gw @@ -4,6 +4,6 @@ class C { } C c; <<< c.i >>>; -//<<< ++c.i >>>; -//1 => c.i; +#!<<< ++c.i >>>; +#!1 => c.i; 2 +=> c.i; diff --git a/tests/tree/return_void.gw b/tests/tree/return_void.gw index 190b9931..60dbe600 100644 --- a/tests/tree/return_void.gw +++ b/tests/tree/return_void.gw @@ -1,6 +1,6 @@ -// define a simple variable: 'i'. +#! define a simple variable: 'i'. int i; -// define a funs that returns 1 if 'i' is non zero, and 0 othervise. +#! define a funs that returns 1 if 'i' is non zero, and 0 othervise. fun int test() { return i ? 1 : 0; } <<< test() >>>; 1 => i; diff --git a/tests/tree/shredule_test.gw b/tests/tree/shredule_test.gw index 29ca5f4b..896f4839 100644 --- a/tests/tree/shredule_test.gw +++ b/tests/tree/shredule_test.gw @@ -1,4 +1,4 @@ -// catch free gc +#! catch free gc Event e; spork { e => now; }; spork { samp => now; 4::samp => now;}; diff --git a/tests/tree/spork_in_func.gw b/tests/tree/spork_in_func.gw index b7c589f9..137b15a3 100644 --- a/tests/tree/spork_in_func.gw +++ b/tests/tree/spork_in_func.gw @@ -1,7 +1,7 @@ fun void test() { spork { <<< 2 >>>; }; } -//spork { <<< 1 >>>; }; -//spork test(); +#!spork { <<< 1 >>>; }; +#!spork test(); test(); second => now; diff --git a/tests/tree/spork_member.gw b/tests/tree/spork_member.gw index 1939a9a3..dcdebe68 100644 --- a/tests/tree/spork_member.gw +++ b/tests/tree/spork_member.gw @@ -6,12 +6,12 @@ class C <<< "test2" >>>; }; } -// spork test(2); -// spork { <<< "test", this >>>; }; +#! spork test(2); +#! spork { <<< "test", this >>>; }; } C c; <<< c >>>; -//spork +#!spork c.test(1); c.test(2); samp => now; diff --git a/tests/tree/uncalled_functions.gw b/tests/tree/uncalled_functions.gw index 0157635a..82e30fd7 100644 --- a/tests/tree/uncalled_functions.gw +++ b/tests/tree/uncalled_functions.gw @@ -1,4 +1,4 @@ -// just to check uncalled fun to not push the stack +#! just to check uncalled fun to not push the stack class C { fun void test(){} fun static void stest() {}} C c; diff --git a/tests/tree/vec_num_dim.gw b/tests/tree/vec_num_dim.gw index 894f7584..5f6e00bc 100644 --- a/tests/tree/vec_num_dim.gw +++ b/tests/tree/vec_num_dim.gw @@ -1,2 +1,2 @@ -// a vec3 with only two expressions +#! a vec3 with only two expressions [ @(0.0- 0.0, 0.0) ];