From: Alexis Laferrière Date: Thu, 29 Mar 2018 14:47:52 +0000 (-0400) Subject: tests: remove colors from savs of nitls, nitlight, etc. X-Git-Url: http://nitlanguage.org tests: remove colors from savs of nitls, nitlight, etc. Signed-off-by: Alexis Laferrière --- diff --git a/lib/popcorn/examples/middlewares/tests/test_example_advanced_logger.res b/lib/popcorn/examples/middlewares/tests/test_example_advanced_logger.res index ac28033..55cf4e1 100644 --- a/lib/popcorn/examples/middlewares/tests/test_example_advanced_logger.res +++ b/lib/popcorn/examples/middlewares/tests/test_example_advanced_logger.res @@ -1,9 +1,9 @@ [Client] curl -s localhost:*****/ -GET / 200 (0.0s) +GET / 200 (0.0s) Hello World! [Client] curl -s localhost:*****/about -GET /about 404 (0.0s) +GET /about 404 (0.0s) diff --git a/tests/sav/neo_doxygen_dump.res b/tests/sav/neo_doxygen_dump.res index 74384a4..c5d08b8 100644 --- a/tests/sav/neo_doxygen_dump.res +++ b/tests/sav/neo_doxygen_dump.res @@ -1,16 +1,16 @@ -NAME +NAME %PROGRAM_NAME% — Doxygen XML to Neo4j. -SYNOPSIS +SYNOPSIS %PROGRAM_NAME% [--dest ] [--src-lang ] [--] %PROGRAM_NAME% [-h|--help] -DESCRIPTION +DESCRIPTION Convert a Doxygen XML output into a model in Neo4j that is readable by the `nx` tool. -ARGUMENTS +ARGUMENTS The internal name of the project. Must the same name as the one specified to the `nx` tool. Must not begin by an upper case letter. @@ -18,7 +18,7 @@ The directory where the XML documents generated by Doxygen are located. -OPTIONS +OPTIONS --dest The URL of the destination graph. `http://localhost:7474` by default. diff --git a/tests/sav/nitlight_args4.res b/tests/sav/nitlight_args4.res index 9104b4b..8bb2bc8 100644 --- a/tests/sav/nitlight_args4.res +++ b/tests/sav/nitlight_args4.res @@ -1,66 +1,66 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2006-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import end +# This file is part of NIT ( http://www.nitlanguage.org ). +# +# Copyright 2006-2008 Jean Privat +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. -interface Object -end +import end -enum Bool -end +interface Object +end -enum Int - fun output is intern -end +enum Bool +end -class A - init do 5.output - fun run do 6.output -end +enum Int + fun output is intern +end -class B - var val: Int - init(v: Int) - do - 7.output - self.val = v - end - fun run do val.output -end +class A + init do 5.output + fun run do 6.output +end -class C - var val1: Int - var val2: Int = 10 -end +class B + var val: Int + init(v: Int) + do + 7.output + self.val = v + end + fun run do val.output +end -fun foo do 2.output -fun bar(i: Int) do i.output -fun baz: Int do return 4 +class C + var val1: Int + var val2: Int = 10 +end -1.output +fun foo do 2.output +fun bar(i: Int) do i.output +fun baz: Int do return 4 + +1.output foo -bar(3) +bar(3) baz.output -var a = new A +var a = new A a.run -var b = new B(8) +var b = new B(8) b.run -var c = new C(9) +var c = new C(9) c.val1.output c.val2.output diff --git a/tests/sav/nitls_args1.res b/tests/sav/nitls_args1.res index 2e6f89d..4bfdf90 100644 --- a/tests/sav/nitls_args1.res +++ b/tests/sav/nitls_args1.res @@ -1,15 +1,15 @@ -base_simple3 (base_simple3.nit) -project1 (project1) -|--module1 (project1/module1.nit) -|--module2 (project1/module2.nit) -|--module3 (project1/module3.nit) -|--module_0 (project1/module_0.nit) -|--module_01 (project1/module_01.nit) -|--module_02 (project1/module_02.nit) -|--project1 (project1/project1.nit) -`--subdir (project1/subdir) - |--module4 (project1/subdir/module4.nit) - |--module_0 (project1/subdir/module_0.nit) - `--subdir2 (project1/subdir/subdir2) - `--subdir3 (project1/subdir/subdir2/subdir3) - `--submodule (project1/subdir/subdir2/subdir3/submodule.nit) +base_simple3 (base_simple3.nit) +project1 (project1) +|--module1 (project1/module1.nit) +|--module2 (project1/module2.nit) +|--module3 (project1/module3.nit) +|--module_0 (project1/module_0.nit) +|--module_01 (project1/module_01.nit) +|--module_02 (project1/module_02.nit) +|--project1 (project1/project1.nit) +`--subdir (project1/subdir) + |--module4 (project1/subdir/module4.nit) + |--module_0 (project1/subdir/module_0.nit) + `--subdir2 (project1/subdir/subdir2) + `--subdir3 (project1/subdir/subdir2/subdir3) + `--submodule (project1/subdir/subdir2/subdir3/submodule.nit) diff --git a/tests/sav/nitls_args2.res b/tests/sav/nitls_args2.res index 2e6f89d..4bfdf90 100644 --- a/tests/sav/nitls_args2.res +++ b/tests/sav/nitls_args2.res @@ -1,15 +1,15 @@ -base_simple3 (base_simple3.nit) -project1 (project1) -|--module1 (project1/module1.nit) -|--module2 (project1/module2.nit) -|--module3 (project1/module3.nit) -|--module_0 (project1/module_0.nit) -|--module_01 (project1/module_01.nit) -|--module_02 (project1/module_02.nit) -|--project1 (project1/project1.nit) -`--subdir (project1/subdir) - |--module4 (project1/subdir/module4.nit) - |--module_0 (project1/subdir/module_0.nit) - `--subdir2 (project1/subdir/subdir2) - `--subdir3 (project1/subdir/subdir2/subdir3) - `--submodule (project1/subdir/subdir2/subdir3/submodule.nit) +base_simple3 (base_simple3.nit) +project1 (project1) +|--module1 (project1/module1.nit) +|--module2 (project1/module2.nit) +|--module3 (project1/module3.nit) +|--module_0 (project1/module_0.nit) +|--module_01 (project1/module_01.nit) +|--module_02 (project1/module_02.nit) +|--project1 (project1/project1.nit) +`--subdir (project1/subdir) + |--module4 (project1/subdir/module4.nit) + |--module_0 (project1/subdir/module_0.nit) + `--subdir2 (project1/subdir/subdir2) + `--subdir3 (project1/subdir/subdir2/subdir3) + `--submodule (project1/subdir/subdir2/subdir3/submodule.nit) diff --git a/tests/sav/nitls_args3.res b/tests/sav/nitls_args3.res index ed5df5e..c72a594 100644 --- a/tests/sav/nitls_args3.res +++ b/tests/sav/nitls_args3.res @@ -1,18 +1,18 @@ -base_simple3 (base_simple3.nit) -project1 (project1) -|--module1 (project1/module1.nit) -|--module2 (project1/module2.nit) -|--module3 (project1/module3.nit) -|--module_0 (project1/module_0.nit) -|--module_01 (project1/module_01.nit) -|--module_02 (project1/module_02.nit) -|--project1 (project1/project1.nit) -`--subdir (project1/subdir) - |--module4 (project1/subdir/module4.nit) - |--module_0 (project1/subdir/module_0.nit) - `--subdir2 (project1/subdir/subdir2) - `--subdir3 (project1/subdir/subdir2/subdir3) - `--submodule (project1/subdir/subdir2/subdir3/submodule.nit) -project2 (project1/project2) -|--foo (project1/project2/foo.nit) -`--project2 (project1/project2/project2.nit) +base_simple3 (base_simple3.nit) +project1 (project1) +|--module1 (project1/module1.nit) +|--module2 (project1/module2.nit) +|--module3 (project1/module3.nit) +|--module_0 (project1/module_0.nit) +|--module_01 (project1/module_01.nit) +|--module_02 (project1/module_02.nit) +|--project1 (project1/project1.nit) +`--subdir (project1/subdir) + |--module4 (project1/subdir/module4.nit) + |--module_0 (project1/subdir/module_0.nit) + `--subdir2 (project1/subdir/subdir2) + `--subdir3 (project1/subdir/subdir2/subdir3) + `--submodule (project1/subdir/subdir2/subdir3/submodule.nit) +project2 (project1/project2) +|--foo (project1/project2/foo.nit) +`--project2 (project1/project2/project2.nit) diff --git a/tests/sav/nitls_args4.res b/tests/sav/nitls_args4.res index 64895a3..7d1bc05 100644 --- a/tests/sav/nitls_args4.res +++ b/tests/sav/nitls_args4.res @@ -1,11 +1,11 @@ -base_simple3>base_simple3 (base_simple3.nit) -project1>module1 (project1/module1.nit) -project1>module2 (project1/module2.nit) -project1>module3 (project1/module3.nit) -project1>subdir>module4 (project1/subdir/module4.nit) -project1>module_0 (project1/module_0.nit) -project1>subdir>module_0 (project1/subdir/module_0.nit) -project1>module_01 (project1/module_01.nit) -project1>module_02 (project1/module_02.nit) -project1>project1 (project1/project1.nit) -project1>subdir>subdir2>subdir3>submodule (project1/subdir/subdir2/subdir3/submodule.nit) +base_simple3>base_simple3 (base_simple3.nit) +project1>module1 (project1/module1.nit) +project1>module2 (project1/module2.nit) +project1>module3 (project1/module3.nit) +project1>subdir>module4 (project1/subdir/module4.nit) +project1>module_0 (project1/module_0.nit) +project1>subdir>module_0 (project1/subdir/module_0.nit) +project1>module_01 (project1/module_01.nit) +project1>module_02 (project1/module_02.nit) +project1>project1 (project1/project1.nit) +project1>subdir>subdir2>subdir3>submodule (project1/subdir/subdir2/subdir3/submodule.nit) diff --git a/tests/sav/nitls_args6.res b/tests/sav/nitls_args6.res index 7cf6fd3..2bef1de 100644 --- a/tests/sav/nitls_args6.res +++ b/tests/sav/nitls_args6.res @@ -1,8 +1,8 @@ -project1 (project1) -|--module1 (project1/module1.nit) -|--module3 (project1/module3.nit) (module4) -`--subdir (project1/subdir) - |--module4 (project1/subdir/module4.nit) (module1) - `--subdir2 (project1/subdir/subdir2) - `--subdir3 (project1/subdir/subdir2/subdir3) - `--submodule (project1/subdir/subdir2/subdir3/submodule.nit) +project1 (project1) +|--module1 (project1/module1.nit) +|--module3 (project1/module3.nit) (module4) +`--subdir (project1/subdir) + |--module4 (project1/subdir/module4.nit) (module1) + `--subdir2 (project1/subdir/subdir2) + `--subdir3 (project1/subdir/subdir2/subdir3) + `--submodule (project1/subdir/subdir2/subdir3/submodule.nit) diff --git a/tests/sav/nitls_args7.res b/tests/sav/nitls_args7.res index 9a0889d..49f93f6 100644 --- a/tests/sav/nitls_args7.res +++ b/tests/sav/nitls_args7.res @@ -1,14 +1,14 @@ test_prog: Test program for model tools. (test_prog) |--examples (test_prog/examples) -| `--game_examples (test_prog/examples/game_examples.nit) +| `--game_examples (test_prog/examples/game_examples.nit) |--game: Gaming group (test_prog/game) -| `--game: A game abstraction for RPG. (test_prog/game/game.nit) +| `--game: A game abstraction for RPG. (test_prog/game/game.nit) |--platform: Fictive Crappy Platform. (test_prog/platform) -| `--platform: Declares base types allowed on the platform. (test_prog/platform/platform.nit) +| `--platform: Declares base types allowed on the platform. (test_prog/platform/platform.nit) |--rpg: Role Playing Game group (test_prog/rpg) -| |--careers: Careers of the game. (test_prog/rpg/careers.nit) -| |--character: Characters are playable entity in the world. (test_prog/rpg/character.nit) -| |--combat: COmbat interactions between characters. (test_prog/rpg/combat.nit) -| |--races: Races of the game. (test_prog/rpg/races.nit) -| `--rpg: A worlg RPG abstraction. (test_prog/rpg/rpg.nit) -`--test_prog: A test program with a fake model to check model tools. (test_prog/test_prog.nit) +| |--careers: Careers of the game. (test_prog/rpg/careers.nit) +| |--character: Characters are playable entity in the world. (test_prog/rpg/character.nit) +| |--combat: COmbat interactions between characters. (test_prog/rpg/combat.nit) +| |--races: Races of the game. (test_prog/rpg/races.nit) +| `--rpg: A worlg RPG abstraction. (test_prog/rpg/rpg.nit) +`--test_prog: A test program with a fake model to check model tools. (test_prog/test_prog.nit) diff --git a/tests/sav/nitls_args8.res b/tests/sav/nitls_args8.res index b80e7ce..b254696 100644 --- a/tests/sav/nitls_args8.res +++ b/tests/sav/nitls_args8.res @@ -1,2 +1,2 @@ -excluded (test_prog/game/excluded.nit) -more (test_prog/game/excluded_dir/more.nit) +excluded (test_prog/game/excluded.nit) +more (test_prog/game/excluded_dir/more.nit) diff --git a/tests/sav/test_parser_args1.res b/tests/sav/test_parser_args1.res index b181fe0..cedd01e 100644 --- a/tests/sav/test_parser_args1.res +++ b/tests/sav/test_parser_args1.res @@ -1,38 +1,38 @@ -17 # Program used to test the NIT parser -Start @../src/test_parser.nit:17,1--139,1 +17 # Program used to test the NIT parser +Start @../src/test_parser.nit:17,1--139,1 |--AModule @../src/test_parser.nit:17,1--138,3 | |--AModuledecl @../src/test_parser.nit:17,1--18,18 | | |--ADoc @../src/test_parser.nit:17,1--18,0 | | | `--TComment # Program used to test the NIT parser\n @../src/test_parser.nit:17,1--18,0 -18 module test_parser -| | |--APublicVisibility @../src/test_parser.nit:18,1 +18 module test_parser +| | |--APublicVisibility @../src/test_parser.nit:18,1 | | |--TKwmodule module @../src/test_parser.nit:18,1--6 | | `--AModuleName @../src/test_parser.nit:18,8--18 | | `--TId test_parser @../src/test_parser.nit:18,8--18 -19 +19 import parser -20 import parser -| |--AStdImport @../src/test_parser.nit:20,1--13 +20 import parser +| |--AStdImport @../src/test_parser.nit:20,1--13 | | |--APublicVisibility @../src/test_parser.nit:20,1 | | |--TKwimport import @../src/test_parser.nit:20,1--6 | | `--AModuleName @../src/test_parser.nit:20,8--13 | | `--TId parser @../src/test_parser.nit:20,8--13 -21 import parser_util -| |--AStdImport @../src/test_parser.nit:21,1--18 +21 import parser_util +| |--AStdImport @../src/test_parser.nit:21,1--18 | | |--APublicVisibility @../src/test_parser.nit:21,1 | | |--TKwimport import @../src/test_parser.nit:21,1--6 | | `--AModuleName @../src/test_parser.nit:21,8--18 | | `--TId parser_util @../src/test_parser.nit:21,8--18 -22 import astutil -| |--AStdImport @../src/test_parser.nit:22,1--14 +22 import astutil +| |--AStdImport @../src/test_parser.nit:22,1--14 | | |--APublicVisibility @../src/test_parser.nit:22,1 | | |--TKwimport import @../src/test_parser.nit:22,1--6 | | `--AModuleName @../src/test_parser.nit:22,8--14 | | `--TId astutil @../src/test_parser.nit:22,8--14 -23 +23 var no_print = false -24 var no_print = false -| `--AMainClassdef @../src/test_parser.nit:24,1--138,3 +24 var no_print = false +| `--AMainClassdef @../src/test_parser.nit:24,1--138,3 | `--AMainMethPropdef @../src/test_parser.nit:24,1--138,3 | `--ABlockExpr @../src/test_parser.nit:24,1--138,3 | |--AVardeclExpr @../src/test_parser.nit:24,1--20 @@ -41,45 +41,45 @@ var no_print = false | | |--TAssign = @../src/test_parser.nit:24,14 | | `--AFalseExpr @../src/test_parser.nit:24,16--20 | | `--TKwfalse false @../src/test_parser.nit:24,16--20 -25 var only_lexer = false -| |--AVardeclExpr @../src/test_parser.nit:25,1--22 +25 var only_lexer = false +| |--AVardeclExpr @../src/test_parser.nit:25,1--22 | | |--TKwvar var @../src/test_parser.nit:25,1--3 | | |--TId only_lexer @../src/test_parser.nit:25,5--14 | | |--TAssign = @../src/test_parser.nit:25,16 | | `--AFalseExpr @../src/test_parser.nit:25,18--22 | | `--TKwfalse false @../src/test_parser.nit:25,18--22 -26 var need_help = false -| |--AVardeclExpr @../src/test_parser.nit:26,1--21 +26 var need_help = false +| |--AVardeclExpr @../src/test_parser.nit:26,1--21 | | |--TKwvar var @../src/test_parser.nit:26,1--3 | | |--TId need_help @../src/test_parser.nit:26,5--13 | | |--TAssign = @../src/test_parser.nit:26,15 | | `--AFalseExpr @../src/test_parser.nit:26,17--21 | | `--TKwfalse false @../src/test_parser.nit:26,17--21 -27 var no_file = false -| |--AVardeclExpr @../src/test_parser.nit:27,1--19 +27 var no_file = false +| |--AVardeclExpr @../src/test_parser.nit:27,1--19 | | |--TKwvar var @../src/test_parser.nit:27,1--3 | | |--TId no_file @../src/test_parser.nit:27,5--11 | | |--TAssign = @../src/test_parser.nit:27,13 | | `--AFalseExpr @../src/test_parser.nit:27,15--19 | | `--TKwfalse false @../src/test_parser.nit:27,15--19 -28 var interactive = false -| |--AVardeclExpr @../src/test_parser.nit:28,1--23 +28 var interactive = false +| |--AVardeclExpr @../src/test_parser.nit:28,1--23 | | |--TKwvar var @../src/test_parser.nit:28,1--3 | | |--TId interactive @../src/test_parser.nit:28,5--15 | | |--TAssign = @../src/test_parser.nit:28,17 | | `--AFalseExpr @../src/test_parser.nit:28,19--23 | | `--TKwfalse false @../src/test_parser.nit:28,19--23 -29 var xml = false -| |--AVardeclExpr @../src/test_parser.nit:29,1--15 +29 var xml = false +| |--AVardeclExpr @../src/test_parser.nit:29,1--15 | | |--TKwvar var @../src/test_parser.nit:29,1--3 | | |--TId xml @../src/test_parser.nit:29,5--7 | | |--TAssign = @../src/test_parser.nit:29,9 | | `--AFalseExpr @../src/test_parser.nit:29,11--15 | | `--TKwfalse false @../src/test_parser.nit:29,11--15 -30 +30 while not args.is_empty and args.first.chars.first == '-' do -31 while not args.is_empty and args.first.chars.first == '-' do -| |--AWhileExpr @../src/test_parser.nit:31,1--51,3 +31 while not args.is_empty and args.first.chars.first == '-' do +| |--AWhileExpr @../src/test_parser.nit:31,1--51,3 | | |--TKwwhile while @../src/test_parser.nit:31,1--5 | | |--AAndExpr @../src/test_parser.nit:31,7--57 | | | |--ANotExpr @../src/test_parser.nit:31,7--23 @@ -116,8 +116,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | `--ACharExpr @../src/test_parser.nit:31,55--57 | | | `--TChar \'-\' @../src/test_parser.nit:31,55--57 | | |--TKwdo do @../src/test_parser.nit:31,59--60 -32 if args.first == "-n" then -| | `--ABlockExpr @../src/test_parser.nit:32,2--51,3 +32 if args.first == "-n" then +| | `--ABlockExpr @../src/test_parser.nit:32,2--51,3 | | |--AIfExpr @../src/test_parser.nit:32,2--49,4 | | | |--TKwif if @../src/test_parser.nit:32,2--3 | | | |--AEqExpr @../src/test_parser.nit:32,5--22 @@ -134,8 +134,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | `--AStringExpr @../src/test_parser.nit:32,19--22 | | | | `--TString \"-n\" @../src/test_parser.nit:32,19--22 | | | |--TKwthen then @../src/test_parser.nit:32,24--27 -33 no_print = true -| | | |--ABlockExpr @../src/test_parser.nit:33,3--17 +33 no_print = true +| | | |--ABlockExpr @../src/test_parser.nit:33,3--17 | | | | `--ACallAssignExpr @../src/test_parser.nit:33,3--17 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:33,3 | | | | |--AQid @../src/test_parser.nit:33,3--10 @@ -144,8 +144,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | |--TAssign = @../src/test_parser.nit:33,12 | | | | `--ATrueExpr @../src/test_parser.nit:33,14--17 | | | | `--TKwtrue true @../src/test_parser.nit:33,14--17 -34 else if args.first == "-l" then -| | | |--TKwelse else @../src/test_parser.nit:34,2--5 +34 else if args.first == "-l" then +| | | |--TKwelse else @../src/test_parser.nit:34,2--5 | | | `--AIfExpr @../src/test_parser.nit:34,7--49,4 | | | |--TKwif if @../src/test_parser.nit:34,7--8 | | | |--AEqExpr @../src/test_parser.nit:34,10--27 @@ -162,8 +162,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | `--AStringExpr @../src/test_parser.nit:34,24--27 | | | | `--TString \"-l\" @../src/test_parser.nit:34,24--27 | | | |--TKwthen then @../src/test_parser.nit:34,29--32 -35 only_lexer = true -| | | |--ABlockExpr @../src/test_parser.nit:35,3--19 +35 only_lexer = true +| | | |--ABlockExpr @../src/test_parser.nit:35,3--19 | | | | `--ACallAssignExpr @../src/test_parser.nit:35,3--19 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:35,3 | | | | |--AQid @../src/test_parser.nit:35,3--12 @@ -172,8 +172,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | |--TAssign = @../src/test_parser.nit:35,14 | | | | `--ATrueExpr @../src/test_parser.nit:35,16--19 | | | | `--TKwtrue true @../src/test_parser.nit:35,16--19 -36 else if args.first == "-p" then -| | | |--TKwelse else @../src/test_parser.nit:36,2--5 +36 else if args.first == "-p" then +| | | |--TKwelse else @../src/test_parser.nit:36,2--5 | | | `--AIfExpr @../src/test_parser.nit:36,7--49,4 | | | |--TKwif if @../src/test_parser.nit:36,7--8 | | | |--AEqExpr @../src/test_parser.nit:36,10--27 @@ -190,8 +190,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | `--AStringExpr @../src/test_parser.nit:36,24--27 | | | | `--TString \"-p\" @../src/test_parser.nit:36,24--27 | | | |--TKwthen then @../src/test_parser.nit:36,29--32 -37 only_lexer = false -| | | |--ABlockExpr @../src/test_parser.nit:37,3--20 +37 only_lexer = false +| | | |--ABlockExpr @../src/test_parser.nit:37,3--20 | | | | `--ACallAssignExpr @../src/test_parser.nit:37,3--20 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:37,3 | | | | |--AQid @../src/test_parser.nit:37,3--12 @@ -200,8 +200,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | |--TAssign = @../src/test_parser.nit:37,14 | | | | `--AFalseExpr @../src/test_parser.nit:37,16--20 | | | | `--TKwfalse false @../src/test_parser.nit:37,16--20 -38 else if args.first == "-x" then -| | | |--TKwelse else @../src/test_parser.nit:38,2--5 +38 else if args.first == "-x" then +| | | |--TKwelse else @../src/test_parser.nit:38,2--5 | | | `--AIfExpr @../src/test_parser.nit:38,7--49,4 | | | |--TKwif if @../src/test_parser.nit:38,7--8 | | | |--AEqExpr @../src/test_parser.nit:38,10--27 @@ -218,8 +218,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | `--AStringExpr @../src/test_parser.nit:38,24--27 | | | | `--TString \"-x\" @../src/test_parser.nit:38,24--27 | | | |--TKwthen then @../src/test_parser.nit:38,29--32 -39 xml = true -| | | |--ABlockExpr @../src/test_parser.nit:39,3--12 +39 xml = true +| | | |--ABlockExpr @../src/test_parser.nit:39,3--12 | | | | `--ACallAssignExpr @../src/test_parser.nit:39,3--12 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:39,3 | | | | |--AQid @../src/test_parser.nit:39,3--5 @@ -228,8 +228,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | |--TAssign = @../src/test_parser.nit:39,7 | | | | `--ATrueExpr @../src/test_parser.nit:39,9--12 | | | | `--TKwtrue true @../src/test_parser.nit:39,9--12 -40 else if args.first == "-e" then -| | | |--TKwelse else @../src/test_parser.nit:40,2--5 +40 else if args.first == "-e" then +| | | |--TKwelse else @../src/test_parser.nit:40,2--5 | | | `--AIfExpr @../src/test_parser.nit:40,7--49,4 | | | |--TKwif if @../src/test_parser.nit:40,7--8 | | | |--AEqExpr @../src/test_parser.nit:40,10--27 @@ -246,8 +246,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | `--AStringExpr @../src/test_parser.nit:40,24--27 | | | | `--TString \"-e\" @../src/test_parser.nit:40,24--27 | | | |--TKwthen then @../src/test_parser.nit:40,29--32 -41 no_file = true -| | | |--ABlockExpr @../src/test_parser.nit:41,3--16 +41 no_file = true +| | | |--ABlockExpr @../src/test_parser.nit:41,3--16 | | | | `--ACallAssignExpr @../src/test_parser.nit:41,3--16 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:41,3 | | | | |--AQid @../src/test_parser.nit:41,3--9 @@ -256,8 +256,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | |--TAssign = @../src/test_parser.nit:41,11 | | | | `--ATrueExpr @../src/test_parser.nit:41,13--16 | | | | `--TKwtrue true @../src/test_parser.nit:41,13--16 -42 else if args.first == "-i" then -| | | |--TKwelse else @../src/test_parser.nit:42,2--5 +42 else if args.first == "-i" then +| | | |--TKwelse else @../src/test_parser.nit:42,2--5 | | | `--AIfExpr @../src/test_parser.nit:42,7--49,4 | | | |--TKwif if @../src/test_parser.nit:42,7--8 | | | |--AEqExpr @../src/test_parser.nit:42,10--27 @@ -274,8 +274,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | `--AStringExpr @../src/test_parser.nit:42,24--27 | | | | `--TString \"-i\" @../src/test_parser.nit:42,24--27 | | | |--TKwthen then @../src/test_parser.nit:42,29--32 -43 interactive = true -| | | |--ABlockExpr @../src/test_parser.nit:43,3--20 +43 interactive = true +| | | |--ABlockExpr @../src/test_parser.nit:43,3--20 | | | | `--ACallAssignExpr @../src/test_parser.nit:43,3--20 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:43,3 | | | | |--AQid @../src/test_parser.nit:43,3--13 @@ -284,8 +284,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | |--TAssign = @../src/test_parser.nit:43,15 | | | | `--ATrueExpr @../src/test_parser.nit:43,17--20 | | | | `--TKwtrue true @../src/test_parser.nit:43,17--20 -44 else if args.first == "-h" or args.first == "-?" then -| | | |--TKwelse else @../src/test_parser.nit:44,2--5 +44 else if args.first == "-h" or args.first == "-?" then +| | | |--TKwelse else @../src/test_parser.nit:44,2--5 | | | `--AIfExpr @../src/test_parser.nit:44,7--49,4 | | | |--TKwif if @../src/test_parser.nit:44,7--8 | | | |--AOrExpr @../src/test_parser.nit:44,10--49 @@ -317,8 +317,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | `--AStringExpr @../src/test_parser.nit:44,46--49 | | | | `--TString \"-?\" @../src/test_parser.nit:44,46--49 | | | |--TKwthen then @../src/test_parser.nit:44,51--54 -45 need_help = true -| | | |--ABlockExpr @../src/test_parser.nit:45,3--18 +45 need_help = true +| | | |--ABlockExpr @../src/test_parser.nit:45,3--18 | | | | `--ACallAssignExpr @../src/test_parser.nit:45,3--18 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:45,3 | | | | |--AQid @../src/test_parser.nit:45,3--11 @@ -327,10 +327,10 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | |--TAssign = @../src/test_parser.nit:45,13 | | | | `--ATrueExpr @../src/test_parser.nit:45,15--18 | | | | `--TKwtrue true @../src/test_parser.nit:45,15--18 -46 else -| | | |--TKwelse else @../src/test_parser.nit:46,2--5 -47 stderr.write("Unknown option {args.first}.\n") -| | | `--ABlockExpr @../src/test_parser.nit:47,3--49,4 +46 else +| | | |--TKwelse else @../src/test_parser.nit:46,2--5 +47 stderr.write("Unknown option {args.first}.\n") +| | | `--ABlockExpr @../src/test_parser.nit:47,3--49,4 | | | |--ACallExpr @../src/test_parser.nit:47,3--48 | | | | |--ACallExpr @../src/test_parser.nit:47,3--8 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:47,3 @@ -356,8 +356,8 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | | `--AEndStringExpr @../src/test_parser.nit:47,43--47 | | | | | `--TEndString }.\\n\" @../src/test_parser.nit:47,43--47 | | | | `--TCpar ) @../src/test_parser.nit:47,48 -48 exit(0) -| | | |--ACallExpr @../src/test_parser.nit:48,3--9 +48 exit(0) +| | | |--ACallExpr @../src/test_parser.nit:48,3--9 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:48,3 | | | | |--AQid @../src/test_parser.nit:48,3--6 | | | | | `--TId exit @../src/test_parser.nit:48,3--6 @@ -366,10 +366,10 @@ while not args.is_empty and args.first.chars.first == '-' do | | | | |--AIntegerExpr @../src/test_parser.nit:48,8 | | | | | `--TInteger 0 @../src/test_parser.nit:48,8 | | | | `--TCpar ) @../src/test_parser.nit:48,9 -49 end -| | | `--TKwend end @../src/test_parser.nit:49,2--4 -50 args.shift -| | |--ACallExpr @../src/test_parser.nit:50,2--11 +49 end +| | | `--TKwend end @../src/test_parser.nit:49,2--4 +50 args.shift +| | |--ACallExpr @../src/test_parser.nit:50,2--11 | | | |--ACallExpr @../src/test_parser.nit:50,2--5 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:50,2 | | | | |--AQid @../src/test_parser.nit:50,2--5 @@ -378,12 +378,12 @@ while not args.is_empty and args.first.chars.first == '-' do | | | |--AQid @../src/test_parser.nit:50,7--11 | | | | `--TId shift @../src/test_parser.nit:50,7--11 | | | `--AListExprs @../src/test_parser.nit:50,11 -51 end -| | `--TKwend end @../src/test_parser.nit:51,1--3 -52 +51 end +| | `--TKwend end @../src/test_parser.nit:51,1--3 +52 if (args.is_empty and not interactive) or need_help then -53 if (args.is_empty and not interactive) or need_help then -| `--AIfExpr @../src/test_parser.nit:53,1--138,3 +53 if (args.is_empty and not interactive) or need_help then +| `--AIfExpr @../src/test_parser.nit:53,1--138,3 | |--TKwif if @../src/test_parser.nit:53,1--2 | |--AOrExpr @../src/test_parser.nit:53,4--51 | | |--AParExpr @../src/test_parser.nit:53,4--38 @@ -414,8 +414,8 @@ if (args.is_empty and not interactive) or need_help then | | | `--TId need_help @../src/test_parser.nit:53,43--51 | | `--AListExprs @../src/test_parser.nit:53,51 | |--TKwthen then @../src/test_parser.nit:53,53--56 -54 print("usage:") -| |--ABlockExpr @../src/test_parser.nit:54,2--65,30 +54 print("usage:") +| |--ABlockExpr @../src/test_parser.nit:54,2--65,30 | | |--ACallExpr @../src/test_parser.nit:54,2--16 | | | |--AImplicitSelfExpr @../src/test_parser.nit:54,2 | | | |--AQid @../src/test_parser.nit:54,2--6 @@ -425,8 +425,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:54,8--15 | | | | `--TString \"usage:\" @../src/test_parser.nit:54,8--15 | | | `--TCpar ) @../src/test_parser.nit:54,16 -55 print(" test_parser [options]... ...") -| | |--ACallExpr @../src/test_parser.nit:55,2--54 +55 print(" test_parser [options]... ...") +| | |--ACallExpr @../src/test_parser.nit:55,2--54 | | | |--AImplicitSelfExpr @../src/test_parser.nit:55,2 | | | |--AQid @../src/test_parser.nit:55,2--6 | | | | `--TId print @../src/test_parser.nit:55,2--6 @@ -435,8 +435,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:55,8--53 | | | | `--TString \" test_parser [options]... ...\" @../src/test_parser.nit:55,8--53 | | | `--TCpar ) @../src/test_parser.nit:55,54 -56 print(" test_parser -e [options]... ...") -| | |--ACallExpr @../src/test_parser.nit:56,2--49 +56 print(" test_parser -e [options]... ...") +| | |--ACallExpr @../src/test_parser.nit:56,2--49 | | | |--AImplicitSelfExpr @../src/test_parser.nit:56,2 | | | |--AQid @../src/test_parser.nit:56,2--6 | | | | `--TId print @../src/test_parser.nit:56,2--6 @@ -445,8 +445,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:56,8--48 | | | | `--TString \" test_parser -e [options]... ...\" @../src/test_parser.nit:56,8--48 | | | `--TCpar ) @../src/test_parser.nit:56,49 -57 print(" test_parser -i [options]...") -| | |--ACallExpr @../src/test_parser.nit:57,2--39 +57 print(" test_parser -i [options]...") +| | |--ACallExpr @../src/test_parser.nit:57,2--39 | | | |--AImplicitSelfExpr @../src/test_parser.nit:57,2 | | | |--AQid @../src/test_parser.nit:57,2--6 | | | | `--TId print @../src/test_parser.nit:57,2--6 @@ -455,8 +455,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:57,8--38 | | | | `--TString \" test_parser -i [options]...\" @../src/test_parser.nit:57,8--38 | | | `--TCpar ) @../src/test_parser.nit:57,39 -58 print("options:") -| | |--ACallExpr @../src/test_parser.nit:58,2--18 +58 print("options:") +| | |--ACallExpr @../src/test_parser.nit:58,2--18 | | | |--AImplicitSelfExpr @../src/test_parser.nit:58,2 | | | |--AQid @../src/test_parser.nit:58,2--6 | | | | `--TId print @../src/test_parser.nit:58,2--6 @@ -465,8 +465,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:58,8--17 | | | | `--TString \"options:\" @../src/test_parser.nit:58,8--17 | | | `--TCpar ) @../src/test_parser.nit:58,18 -59 print(" -n do not print anything") -| | |--ACallExpr @../src/test_parser.nit:59,2--36 +59 print(" -n do not print anything") +| | |--ACallExpr @../src/test_parser.nit:59,2--36 | | | |--AImplicitSelfExpr @../src/test_parser.nit:59,2 | | | |--AQid @../src/test_parser.nit:59,2--6 | | | | `--TId print @../src/test_parser.nit:59,2--6 @@ -475,8 +475,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:59,8--35 | | | | `--TString \" -n\tdo not print anything\" @../src/test_parser.nit:59,8--35 | | | `--TCpar ) @../src/test_parser.nit:59,36 -60 print(" -l only lexer") -| | |--ACallExpr @../src/test_parser.nit:60,2--25 +60 print(" -l only lexer") +| | |--ACallExpr @../src/test_parser.nit:60,2--25 | | | |--AImplicitSelfExpr @../src/test_parser.nit:60,2 | | | |--AQid @../src/test_parser.nit:60,2--6 | | | | `--TId print @../src/test_parser.nit:60,2--6 @@ -485,8 +485,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:60,8--24 | | | | `--TString \" -l\tonly lexer\" @../src/test_parser.nit:60,8--24 | | | `--TCpar ) @../src/test_parser.nit:60,25 -61 print(" -p lexer and parser (default)") -| | |--ACallExpr @../src/test_parser.nit:61,2--41 +61 print(" -p lexer and parser (default)") +| | |--ACallExpr @../src/test_parser.nit:61,2--41 | | | |--AImplicitSelfExpr @../src/test_parser.nit:61,2 | | | |--AQid @../src/test_parser.nit:61,2--6 | | | | `--TId print @../src/test_parser.nit:61,2--6 @@ -495,8 +495,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:61,8--40 | | | | `--TString \" -p\tlexer and parser (default)\" @../src/test_parser.nit:61,8--40 | | | `--TCpar ) @../src/test_parser.nit:61,41 -62 print(" -x instead of a ascii tree, output a XML document") -| | |--ACallExpr @../src/test_parser.nit:62,2--61 +62 print(" -x instead of a ascii tree, output a XML document") +| | |--ACallExpr @../src/test_parser.nit:62,2--61 | | | |--AImplicitSelfExpr @../src/test_parser.nit:62,2 | | | |--AQid @../src/test_parser.nit:62,2--6 | | | | `--TId print @../src/test_parser.nit:62,2--6 @@ -505,8 +505,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:62,8--60 | | | | `--TString \" -x\tinstead of a ascii tree, output a XML document\" @../src/test_parser.nit:62,8--60 | | | `--TCpar ) @../src/test_parser.nit:62,61 -63 print(" -e instead on files, each argument is a content to parse") -| | |--ACallExpr @../src/test_parser.nit:63,2--68 +63 print(" -e instead on files, each argument is a content to parse") +| | |--ACallExpr @../src/test_parser.nit:63,2--68 | | | |--AImplicitSelfExpr @../src/test_parser.nit:63,2 | | | |--AQid @../src/test_parser.nit:63,2--6 | | | | `--TId print @../src/test_parser.nit:63,2--6 @@ -515,8 +515,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:63,8--67 | | | | `--TString \" -e\tinstead on files, each argument is a content to parse\" @../src/test_parser.nit:63,8--67 | | | `--TCpar ) @../src/test_parser.nit:63,68 -64 print(" -i tree to parse are read interactively") -| | |--ACallExpr @../src/test_parser.nit:64,2--51 +64 print(" -i tree to parse are read interactively") +| | |--ACallExpr @../src/test_parser.nit:64,2--51 | | | |--AImplicitSelfExpr @../src/test_parser.nit:64,2 | | | |--AQid @../src/test_parser.nit:64,2--6 | | | | `--TId print @../src/test_parser.nit:64,2--6 @@ -525,8 +525,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:64,8--50 | | | | `--TString \" -i\ttree to parse are read interactively\" @../src/test_parser.nit:64,8--50 | | | `--TCpar ) @../src/test_parser.nit:64,51 -65 print(" -h print this help") -| | `--ACallExpr @../src/test_parser.nit:65,2--30 +65 print(" -h print this help") +| | `--ACallExpr @../src/test_parser.nit:65,2--30 | | |--AImplicitSelfExpr @../src/test_parser.nit:65,2 | | |--AQid @../src/test_parser.nit:65,2--6 | | | `--TId print @../src/test_parser.nit:65,2--6 @@ -535,8 +535,8 @@ if (args.is_empty and not interactive) or need_help then | | |--AStringExpr @../src/test_parser.nit:65,8--29 | | | `--TString \" -h\tprint this help\" @../src/test_parser.nit:65,8--29 | | `--TCpar ) @../src/test_parser.nit:65,30 -66 else if interactive then -| |--TKwelse else @../src/test_parser.nit:66,1--4 +66 else if interactive then +| |--TKwelse else @../src/test_parser.nit:66,1--4 | `--AIfExpr @../src/test_parser.nit:66,6--138,3 | |--TKwif if @../src/test_parser.nit:66,6--7 | |--ACallExpr @../src/test_parser.nit:66,9--19 @@ -545,8 +545,8 @@ if (args.is_empty and not interactive) or need_help then | | | `--TId interactive @../src/test_parser.nit:66,9--19 | | `--AListExprs @../src/test_parser.nit:66,19 | |--TKwthen then @../src/test_parser.nit:66,21--24 -67 if only_lexer then -| |--ABlockExpr @../src/test_parser.nit:67,2--100,4 +67 if only_lexer then +| |--ABlockExpr @../src/test_parser.nit:67,2--100,4 | | |--AIfExpr @../src/test_parser.nit:67,2--76,4 | | | |--TKwif if @../src/test_parser.nit:67,2--3 | | | |--ACallExpr @../src/test_parser.nit:67,5--14 @@ -555,8 +555,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--TId only_lexer @../src/test_parser.nit:67,5--14 | | | | `--AListExprs @../src/test_parser.nit:67,14 | | | |--TKwthen then @../src/test_parser.nit:67,16--19 -68 print "Error: -l and -i are incompatible" -| | | |--ABlockExpr @../src/test_parser.nit:68,3--69,8 +68 print "Error: -l and -i are incompatible" +| | | |--ABlockExpr @../src/test_parser.nit:68,3--69,8 | | | | |--ACallExpr @../src/test_parser.nit:68,3--43 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:68,3 | | | | | |--AQid @../src/test_parser.nit:68,3--7 @@ -564,16 +564,16 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--AListExprs @../src/test_parser.nit:68,9--43 | | | | | `--AStringExpr @../src/test_parser.nit:68,9--43 | | | | | `--TString \"Error: -l and -i are incompatible\" @../src/test_parser.nit:68,9--43 -69 exit 1 -| | | | `--ACallExpr @../src/test_parser.nit:69,3--8 +69 exit 1 +| | | | `--ACallExpr @../src/test_parser.nit:69,3--8 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:69,3 | | | | |--AQid @../src/test_parser.nit:69,3--6 | | | | | `--TId exit @../src/test_parser.nit:69,3--6 | | | | `--AListExprs @../src/test_parser.nit:69,8 | | | | `--AIntegerExpr @../src/test_parser.nit:69,8 | | | | `--TInteger 1 @../src/test_parser.nit:69,8 -70 else if no_file then -| | | |--TKwelse else @../src/test_parser.nit:70,2--5 +70 else if no_file then +| | | |--TKwelse else @../src/test_parser.nit:70,2--5 | | | `--AIfExpr @../src/test_parser.nit:70,7--76,4 | | | |--TKwif if @../src/test_parser.nit:70,7--8 | | | |--ACallExpr @../src/test_parser.nit:70,10--16 @@ -582,8 +582,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--TId no_file @../src/test_parser.nit:70,10--16 | | | | `--AListExprs @../src/test_parser.nit:70,16 | | | |--TKwthen then @../src/test_parser.nit:70,18--21 -71 print "Error: -e and -i are incompatible" -| | | |--ABlockExpr @../src/test_parser.nit:71,3--72,8 +71 print "Error: -e and -i are incompatible" +| | | |--ABlockExpr @../src/test_parser.nit:71,3--72,8 | | | | |--ACallExpr @../src/test_parser.nit:71,3--43 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:71,3 | | | | | |--AQid @../src/test_parser.nit:71,3--7 @@ -591,16 +591,16 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--AListExprs @../src/test_parser.nit:71,9--43 | | | | | `--AStringExpr @../src/test_parser.nit:71,9--43 | | | | | `--TString \"Error: -e and -i are incompatible\" @../src/test_parser.nit:71,9--43 -72 exit 1 -| | | | `--ACallExpr @../src/test_parser.nit:72,3--8 +72 exit 1 +| | | | `--ACallExpr @../src/test_parser.nit:72,3--8 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:72,3 | | | | |--AQid @../src/test_parser.nit:72,3--6 | | | | | `--TId exit @../src/test_parser.nit:72,3--6 | | | | `--AListExprs @../src/test_parser.nit:72,8 | | | | `--AIntegerExpr @../src/test_parser.nit:72,8 | | | | `--TInteger 1 @../src/test_parser.nit:72,8 -73 else if not args.is_empty then -| | | |--TKwelse else @../src/test_parser.nit:73,2--5 +73 else if not args.is_empty then +| | | |--TKwelse else @../src/test_parser.nit:73,2--5 | | | `--AIfExpr @../src/test_parser.nit:73,7--76,4 | | | |--TKwif if @../src/test_parser.nit:73,7--8 | | | |--ANotExpr @../src/test_parser.nit:73,10--26 @@ -615,8 +615,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--TId is_empty @../src/test_parser.nit:73,19--26 | | | | `--AListExprs @../src/test_parser.nit:73,26 | | | |--TKwthen then @../src/test_parser.nit:73,28--31 -74 print "Error: -i works without arguments" -| | | |--ABlockExpr @../src/test_parser.nit:74,3--75,8 +74 print "Error: -i works without arguments" +| | | |--ABlockExpr @../src/test_parser.nit:74,3--75,8 | | | | |--ACallExpr @../src/test_parser.nit:74,3--43 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:74,3 | | | | | |--AQid @../src/test_parser.nit:74,3--7 @@ -624,21 +624,21 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--AListExprs @../src/test_parser.nit:74,9--43 | | | | | `--AStringExpr @../src/test_parser.nit:74,9--43 | | | | | `--TString \"Error: -i works without arguments\" @../src/test_parser.nit:74,9--43 -75 exit 1 -| | | | `--ACallExpr @../src/test_parser.nit:75,3--8 +75 exit 1 +| | | | `--ACallExpr @../src/test_parser.nit:75,3--8 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:75,3 | | | | |--AQid @../src/test_parser.nit:75,3--6 | | | | | `--TId exit @../src/test_parser.nit:75,3--6 | | | | `--AListExprs @../src/test_parser.nit:75,8 | | | | `--AIntegerExpr @../src/test_parser.nit:75,8 | | | | `--TInteger 1 @../src/test_parser.nit:75,8 -76 end -| | | `--ABlockExpr @../src/test_parser.nit:76,2--4 +76 end +| | | `--ABlockExpr @../src/test_parser.nit:76,2--4 | | | `--TKwend end @../src/test_parser.nit:76,2--4 -77 +77 var tc = new ToolContext -78 var tc = new ToolContext -| | |--AVardeclExpr @../src/test_parser.nit:78,2--25 +78 var tc = new ToolContext +| | |--AVardeclExpr @../src/test_parser.nit:78,2--25 | | | |--TKwvar var @../src/test_parser.nit:78,2--4 | | | |--TId tc @../src/test_parser.nit:78,6--7 | | | |--TAssign = @../src/test_parser.nit:78,9 @@ -648,13 +648,13 @@ if (args.is_empty and not interactive) or need_help then | | | | `--AQclassid @../src/test_parser.nit:78,15--25 | | | | `--TClassid ToolContext @../src/test_parser.nit:78,15--25 | | | `--AListExprs @../src/test_parser.nit:78,25 -79 +79 loop -80 loop -| | `--ALoopExpr @../src/test_parser.nit:80,2--100,4 +80 loop +| | `--ALoopExpr @../src/test_parser.nit:80,2--100,4 | | |--TKwloop loop @../src/test_parser.nit:80,2--5 -81 var n = tc.interactive_parse("-->") -| | `--ABlockExpr @../src/test_parser.nit:81,3--100,4 +81 var n = tc.interactive_parse("-->") +| | `--ABlockExpr @../src/test_parser.nit:81,3--100,4 | | |--AVardeclExpr @../src/test_parser.nit:81,3--37 | | | |--TKwvar var @../src/test_parser.nit:81,3--5 | | | |--TId n @../src/test_parser.nit:81,7 @@ -672,8 +672,8 @@ if (args.is_empty and not interactive) or need_help then | | | |--AStringExpr @../src/test_parser.nit:81,32--36 | | | | `--TString \"-->\" @../src/test_parser.nit:81,32--36 | | | `--TCpar ) @../src/test_parser.nit:81,37 -82 if n isa TString then -| | |--AIfExpr @../src/test_parser.nit:82,3--90,5 +82 if n isa TString then +| | |--AIfExpr @../src/test_parser.nit:82,3--90,5 | | | |--TKwif if @../src/test_parser.nit:82,3--4 | | | |--AIsaExpr @../src/test_parser.nit:82,6--18 | | | | |--ACallExpr @../src/test_parser.nit:82,6 @@ -686,8 +686,8 @@ if (args.is_empty and not interactive) or need_help then | | | | `--AQclassid @../src/test_parser.nit:82,12--18 | | | | `--TClassid TString @../src/test_parser.nit:82,12--18 | | | |--TKwthen then @../src/test_parser.nit:82,20--23 -83 var s = n.text -| | | |--ABlockExpr @../src/test_parser.nit:83,4--89,11 +83 var s = n.text +| | | |--ABlockExpr @../src/test_parser.nit:83,4--89,11 | | | | |--AVardeclExpr @../src/test_parser.nit:83,4--17 | | | | | |--TKwvar var @../src/test_parser.nit:83,4--6 | | | | | |--TId s @../src/test_parser.nit:83,8 @@ -701,8 +701,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | |--AQid @../src/test_parser.nit:83,14--17 | | | | | | `--TId text @../src/test_parser.nit:83,14--17 | | | | | `--AListExprs @../src/test_parser.nit:83,17 -84 if s == ":q" then -| | | | |--AIfExpr @../src/test_parser.nit:84,4--88,6 +84 if s == ":q" then +| | | | |--AIfExpr @../src/test_parser.nit:84,4--88,6 | | | | | |--TKwif if @../src/test_parser.nit:84,4--5 | | | | | |--AEqExpr @../src/test_parser.nit:84,7--15 | | | | | | |--ACallExpr @../src/test_parser.nit:84,7 @@ -714,14 +714,14 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--AStringExpr @../src/test_parser.nit:84,12--15 | | | | | | `--TString \":q\" @../src/test_parser.nit:84,12--15 | | | | | |--TKwthen then @../src/test_parser.nit:84,17--20 -85 break -| | | | | |--ABlockExpr @../src/test_parser.nit:85,5--9 +85 break +| | | | | |--ABlockExpr @../src/test_parser.nit:85,5--9 | | | | | | `--ABreakExpr @../src/test_parser.nit:85,5--9 | | | | | | `--TKwbreak break @../src/test_parser.nit:85,5--9 -86 else -| | | | | |--TKwelse else @../src/test_parser.nit:86,4--7 -87 print "`:q` to quit" -| | | | | `--ABlockExpr @../src/test_parser.nit:87,5--88,6 +86 else +| | | | | |--TKwelse else @../src/test_parser.nit:86,4--7 +87 print "`:q` to quit" +| | | | | `--ABlockExpr @../src/test_parser.nit:87,5--88,6 | | | | | |--ACallExpr @../src/test_parser.nit:87,5--24 | | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:87,5 | | | | | | |--AQid @../src/test_parser.nit:87,5--9 @@ -729,18 +729,18 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--AListExprs @../src/test_parser.nit:87,11--24 | | | | | | `--AStringExpr @../src/test_parser.nit:87,11--24 | | | | | | `--TString \"`:q` to quit\" @../src/test_parser.nit:87,11--24 -88 end -| | | | | `--TKwend end @../src/test_parser.nit:88,4--6 -89 continue -| | | | `--AContinueExpr @../src/test_parser.nit:89,4--11 +88 end +| | | | | `--TKwend end @../src/test_parser.nit:88,4--6 +89 continue +| | | | `--AContinueExpr @../src/test_parser.nit:89,4--11 | | | | `--TKwcontinue continue @../src/test_parser.nit:89,4--11 -90 end -| | | `--ABlockExpr @../src/test_parser.nit:90,3--5 +90 end +| | | `--ABlockExpr @../src/test_parser.nit:90,3--5 | | | `--TKwend end @../src/test_parser.nit:90,3--5 -91 +91 if n isa AError then -92 if n isa AError then -| | |--AIfExpr @../src/test_parser.nit:92,3--95,5 +92 if n isa AError then +| | |--AIfExpr @../src/test_parser.nit:92,3--95,5 | | | |--TKwif if @../src/test_parser.nit:92,3--4 | | | |--AIsaExpr @../src/test_parser.nit:92,6--17 | | | | |--ACallExpr @../src/test_parser.nit:92,6 @@ -753,8 +753,8 @@ if (args.is_empty and not interactive) or need_help then | | | | `--AQclassid @../src/test_parser.nit:92,12--17 | | | | `--TClassid AError @../src/test_parser.nit:92,12--17 | | | |--TKwthen then @../src/test_parser.nit:92,19--22 -93 print "{n.location.colored_line("0;31")}: {n.message}" -| | | |--ABlockExpr @../src/test_parser.nit:93,4--94,11 +93 print "{n.location.colored_line("0;31")}: {n.message}" +| | | |--ABlockExpr @../src/test_parser.nit:93,4--94,11 | | | | |--ACallExpr @../src/test_parser.nit:93,4--57 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:93,4 | | | | | |--AQid @../src/test_parser.nit:93,4--8 @@ -793,16 +793,16 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--AListExprs @../src/test_parser.nit:93,55 | | | | | `--AEndStringExpr @../src/test_parser.nit:93,56--57 | | | | | `--TEndString }\" @../src/test_parser.nit:93,56--57 -94 continue -| | | | `--AContinueExpr @../src/test_parser.nit:94,4--11 +94 continue +| | | | `--AContinueExpr @../src/test_parser.nit:94,4--11 | | | | `--TKwcontinue continue @../src/test_parser.nit:94,4--11 -95 end -| | | `--ABlockExpr @../src/test_parser.nit:95,3--5 +95 end +| | | `--ABlockExpr @../src/test_parser.nit:95,3--5 | | | `--TKwend end @../src/test_parser.nit:95,3--5 -96 +96 if not no_print then -97 if not no_print then -| | |--AIfExpr @../src/test_parser.nit:97,3--99,5 +97 if not no_print then +| | |--AIfExpr @../src/test_parser.nit:97,3--99,5 | | | |--TKwif if @../src/test_parser.nit:97,3--4 | | | |--ANotExpr @../src/test_parser.nit:97,6--17 | | | | |--TKwnot not @../src/test_parser.nit:97,6--8 @@ -812,8 +812,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--TId no_print @../src/test_parser.nit:97,10--17 | | | | `--AListExprs @../src/test_parser.nit:97,17 | | | |--TKwthen then @../src/test_parser.nit:97,19--22 -98 n.dump_tree -| | | |--ABlockExpr @../src/test_parser.nit:98,4--14 +98 n.dump_tree +| | | |--ABlockExpr @../src/test_parser.nit:98,4--14 | | | | `--ACallExpr @../src/test_parser.nit:98,4--14 | | | | |--ACallExpr @../src/test_parser.nit:98,4 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:98,4 @@ -823,15 +823,15 @@ if (args.is_empty and not interactive) or need_help then | | | | |--AQid @../src/test_parser.nit:98,6--14 | | | | | `--TId dump_tree @../src/test_parser.nit:98,6--14 | | | | `--AListExprs @../src/test_parser.nit:98,14 -99 end -| | | `--ABlockExpr @../src/test_parser.nit:99,3--5 +99 end +| | | `--ABlockExpr @../src/test_parser.nit:99,3--5 | | | `--TKwend end @../src/test_parser.nit:99,3--5 -100 end -| | `--TKwend end @../src/test_parser.nit:100,2--4 -101 else -| |--TKwelse else @../src/test_parser.nit:101,1--4 -102 for a in args do -| `--ABlockExpr @../src/test_parser.nit:102,2--138,3 +100 end +| | `--TKwend end @../src/test_parser.nit:100,2--4 +101 else +| |--TKwelse else @../src/test_parser.nit:101,1--4 +102 for a in args do +| `--ABlockExpr @../src/test_parser.nit:102,2--138,3 | |--AForExpr @../src/test_parser.nit:102,2--137,4 | | |--TKwfor for @../src/test_parser.nit:102,2--4 | | |--AForGroup @../src/test_parser.nit:102,6--14 @@ -843,13 +843,13 @@ if (args.is_empty and not interactive) or need_help then | | | | `--TId args @../src/test_parser.nit:102,11--14 | | | `--AListExprs @../src/test_parser.nit:102,14 | | |--TKwdo do @../src/test_parser.nit:102,16--17 -103 var source -| | `--ABlockExpr @../src/test_parser.nit:103,3--137,4 +103 var source +| | `--ABlockExpr @../src/test_parser.nit:103,3--137,4 | | |--AVardeclExpr @../src/test_parser.nit:103,3--12 | | | |--TKwvar var @../src/test_parser.nit:103,3--5 | | | `--TId source @../src/test_parser.nit:103,7--12 -104 if no_file then -| | |--AIfExpr @../src/test_parser.nit:104,3--110,5 +104 if no_file then +| | |--AIfExpr @../src/test_parser.nit:104,3--110,5 | | | |--TKwif if @../src/test_parser.nit:104,3--4 | | | |--ACallExpr @../src/test_parser.nit:104,6--12 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:104,6 @@ -857,8 +857,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--TId no_file @../src/test_parser.nit:104,6--12 | | | | `--AListExprs @../src/test_parser.nit:104,12 | | | |--TKwthen then @../src/test_parser.nit:104,14--17 -105 source = new SourceFile.from_string("", a) -| | | |--ABlockExpr @../src/test_parser.nit:105,4--45 +105 source = new SourceFile.from_string("", a) +| | | |--ABlockExpr @../src/test_parser.nit:105,4--45 | | | | `--ACallAssignExpr @../src/test_parser.nit:105,4--45 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:105,4 | | | | |--AQid @../src/test_parser.nit:105,4--9 @@ -882,10 +882,10 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--TId a @../src/test_parser.nit:105,44 | | | | | `--AListExprs @../src/test_parser.nit:105,44 | | | | `--TCpar ) @../src/test_parser.nit:105,45 -106 else -| | | |--TKwelse else @../src/test_parser.nit:106,3--6 -107 var f = new FileReader.open(a) -| | | `--ABlockExpr @../src/test_parser.nit:107,4--110,5 +106 else +| | | |--TKwelse else @../src/test_parser.nit:106,3--6 +107 var f = new FileReader.open(a) +| | | `--ABlockExpr @../src/test_parser.nit:107,4--110,5 | | | |--AVardeclExpr @../src/test_parser.nit:107,4--33 | | | | |--TKwvar var @../src/test_parser.nit:107,4--6 | | | | |--TId f @../src/test_parser.nit:107,8 @@ -905,8 +905,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--TId a @../src/test_parser.nit:107,32 | | | | | `--AListExprs @../src/test_parser.nit:107,32 | | | | `--TCpar ) @../src/test_parser.nit:107,33 -108 source = new SourceFile(a, f) -| | | |--ACallAssignExpr @../src/test_parser.nit:108,4--32 +108 source = new SourceFile(a, f) +| | | |--ACallAssignExpr @../src/test_parser.nit:108,4--32 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:108,4 | | | | |--AQid @../src/test_parser.nit:108,4--9 | | | | | `--TId source @../src/test_parser.nit:108,4--9 @@ -930,8 +930,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--TId f @../src/test_parser.nit:108,31 | | | | | `--AListExprs @../src/test_parser.nit:108,31 | | | | `--TCpar ) @../src/test_parser.nit:108,32 -109 f.close -| | | |--ACallExpr @../src/test_parser.nit:109,4--10 +109 f.close +| | | |--ACallExpr @../src/test_parser.nit:109,4--10 | | | | |--ACallExpr @../src/test_parser.nit:109,4 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:109,4 | | | | | |--AQid @../src/test_parser.nit:109,4 @@ -940,10 +940,10 @@ if (args.is_empty and not interactive) or need_help then | | | | |--AQid @../src/test_parser.nit:109,6--10 | | | | | `--TId close @../src/test_parser.nit:109,6--10 | | | | `--AListExprs @../src/test_parser.nit:109,10 -110 end -| | | `--TKwend end @../src/test_parser.nit:110,3--5 -111 var lexer = new Lexer(source) -| | |--AVardeclExpr @../src/test_parser.nit:111,3--31 +110 end +| | | `--TKwend end @../src/test_parser.nit:110,3--5 +111 var lexer = new Lexer(source) +| | |--AVardeclExpr @../src/test_parser.nit:111,3--31 | | | |--TKwvar var @../src/test_parser.nit:111,3--5 | | | |--TId lexer @../src/test_parser.nit:111,7--11 | | | |--TAssign = @../src/test_parser.nit:111,13 @@ -960,8 +960,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--TId source @../src/test_parser.nit:111,25--30 | | | | `--AListExprs @../src/test_parser.nit:111,30 | | | `--TCpar ) @../src/test_parser.nit:111,31 -112 if only_lexer then -| | |--AIfExpr @../src/test_parser.nit:112,3--136,5 +112 if only_lexer then +| | |--AIfExpr @../src/test_parser.nit:112,3--136,5 | | | |--TKwif if @../src/test_parser.nit:112,3--4 | | | |--ACallExpr @../src/test_parser.nit:112,6--15 | | | | |--AImplicitSelfExpr @../src/test_parser.nit:112,6 @@ -969,8 +969,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--TId only_lexer @../src/test_parser.nit:112,6--15 | | | | `--AListExprs @../src/test_parser.nit:112,15 | | | |--TKwthen then @../src/test_parser.nit:112,17--20 -113 var token = lexer.next -| | | |--ABlockExpr @../src/test_parser.nit:113,4--119,6 +113 var token = lexer.next +| | | |--ABlockExpr @../src/test_parser.nit:113,4--119,6 | | | | |--AVardeclExpr @../src/test_parser.nit:113,4--25 | | | | | |--TKwvar var @../src/test_parser.nit:113,4--6 | | | | | |--TId token @../src/test_parser.nit:113,8--12 @@ -984,8 +984,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | |--AQid @../src/test_parser.nit:113,22--25 | | | | | | `--TId next @../src/test_parser.nit:113,22--25 | | | | | `--AListExprs @../src/test_parser.nit:113,25 -114 while not token isa EOF do -| | | | `--AWhileExpr @../src/test_parser.nit:114,4--119,6 +114 while not token isa EOF do +| | | | `--AWhileExpr @../src/test_parser.nit:114,4--119,6 | | | | |--TKwwhile while @../src/test_parser.nit:114,4--8 | | | | |--ANotExpr @../src/test_parser.nit:114,10--26 | | | | | |--TKwnot not @../src/test_parser.nit:114,10--12 @@ -1000,8 +1000,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--AQclassid @../src/test_parser.nit:114,24--26 | | | | | `--TClassid EOF @../src/test_parser.nit:114,24--26 | | | | |--TKwdo do @../src/test_parser.nit:114,28--29 -115 if not no_print then -| | | | `--ABlockExpr @../src/test_parser.nit:115,5--119,6 +115 if not no_print then +| | | | `--ABlockExpr @../src/test_parser.nit:115,5--119,6 | | | | |--AIfExpr @../src/test_parser.nit:115,5--117,7 | | | | | |--TKwif if @../src/test_parser.nit:115,5--6 | | | | | |--ANotExpr @../src/test_parser.nit:115,8--19 @@ -1012,8 +1012,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | | | `--TId no_print @../src/test_parser.nit:115,12--19 | | | | | | `--AListExprs @../src/test_parser.nit:115,19 | | | | | |--TKwthen then @../src/test_parser.nit:115,21--24 -116 print("Read token at {token.location} text='{token.text}'") -| | | | | |--ABlockExpr @../src/test_parser.nit:116,6--64 +116 print("Read token at {token.location} text='{token.text}'") +| | | | | |--ABlockExpr @../src/test_parser.nit:116,6--64 | | | | | | `--ACallExpr @../src/test_parser.nit:116,6--64 | | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:116,6 | | | | | | |--AQid @../src/test_parser.nit:116,6--10 @@ -1046,11 +1046,11 @@ if (args.is_empty and not interactive) or need_help then | | | | | | | `--AEndStringExpr @../src/test_parser.nit:116,61--63 | | | | | | | `--TEndString }\'\" @../src/test_parser.nit:116,61--63 | | | | | | `--TCpar ) @../src/test_parser.nit:116,64 -117 end -| | | | | `--ABlockExpr @../src/test_parser.nit:117,5--7 +117 end +| | | | | `--ABlockExpr @../src/test_parser.nit:117,5--7 | | | | | `--TKwend end @../src/test_parser.nit:117,5--7 -118 token = lexer.next -| | | | |--ACallAssignExpr @../src/test_parser.nit:118,5--22 +118 token = lexer.next +| | | | |--ACallAssignExpr @../src/test_parser.nit:118,5--22 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:118,5 | | | | | |--AQid @../src/test_parser.nit:118,5--9 | | | | | | `--TId token @../src/test_parser.nit:118,5--9 @@ -1065,12 +1065,12 @@ if (args.is_empty and not interactive) or need_help then | | | | | |--AQid @../src/test_parser.nit:118,19--22 | | | | | | `--TId next @../src/test_parser.nit:118,19--22 | | | | | `--AListExprs @../src/test_parser.nit:118,22 -119 end -| | | | `--TKwend end @../src/test_parser.nit:119,4--6 -120 else -| | | |--TKwelse else @../src/test_parser.nit:120,3--6 -121 var parser = new Parser(lexer) -| | | `--ABlockExpr @../src/test_parser.nit:121,4--136,5 +119 end +| | | | `--TKwend end @../src/test_parser.nit:119,4--6 +120 else +| | | |--TKwelse else @../src/test_parser.nit:120,3--6 +121 var parser = new Parser(lexer) +| | | `--ABlockExpr @../src/test_parser.nit:121,4--136,5 | | | |--AVardeclExpr @../src/test_parser.nit:121,4--33 | | | | |--TKwvar var @../src/test_parser.nit:121,4--6 | | | | |--TId parser @../src/test_parser.nit:121,8--13 @@ -1088,8 +1088,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--TId lexer @../src/test_parser.nit:121,28--32 | | | | | `--AListExprs @../src/test_parser.nit:121,32 | | | | `--TCpar ) @../src/test_parser.nit:121,33 -122 var tree = parser.parse -| | | |--AVardeclExpr @../src/test_parser.nit:122,4--26 +122 var tree = parser.parse +| | | |--AVardeclExpr @../src/test_parser.nit:122,4--26 | | | | |--TKwvar var @../src/test_parser.nit:122,4--6 | | | | |--TId tree @../src/test_parser.nit:122,8--11 | | | | |--TAssign = @../src/test_parser.nit:122,13 @@ -1102,10 +1102,10 @@ if (args.is_empty and not interactive) or need_help then | | | | |--AQid @../src/test_parser.nit:122,22--26 | | | | | `--TId parse @../src/test_parser.nit:122,22--26 | | | | `--AListExprs @../src/test_parser.nit:122,26 -123 +123 var error = tree.n_eof -124 var error = tree.n_eof -| | | |--AVardeclExpr @../src/test_parser.nit:124,4--25 +124 var error = tree.n_eof +| | | |--AVardeclExpr @../src/test_parser.nit:124,4--25 | | | | |--TKwvar var @../src/test_parser.nit:124,4--6 | | | | |--TId error @../src/test_parser.nit:124,8--12 | | | | |--TAssign = @../src/test_parser.nit:124,14 @@ -1118,8 +1118,8 @@ if (args.is_empty and not interactive) or need_help then | | | | |--AQid @../src/test_parser.nit:124,21--25 | | | | | `--TId n_eof @../src/test_parser.nit:124,21--25 | | | | `--AListExprs @../src/test_parser.nit:124,25 -125 if error isa AError then -| | | |--AIfExpr @../src/test_parser.nit:125,4--128,6 +125 if error isa AError then +| | | |--AIfExpr @../src/test_parser.nit:125,4--128,6 | | | | |--TKwif if @../src/test_parser.nit:125,4--5 | | | | |--AIsaExpr @../src/test_parser.nit:125,7--22 | | | | | |--ACallExpr @../src/test_parser.nit:125,7--11 @@ -1132,8 +1132,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | `--AQclassid @../src/test_parser.nit:125,17--22 | | | | | `--TClassid AError @../src/test_parser.nit:125,17--22 | | | | |--TKwthen then @../src/test_parser.nit:125,24--27 -126 print("Error at {error.location}:\n\t{error.message}") -| | | | |--ABlockExpr @../src/test_parser.nit:126,5--127,10 +126 print("Error at {error.location}:\n\t{error.message}") +| | | | |--ABlockExpr @../src/test_parser.nit:126,5--127,10 | | | | | |--ACallExpr @../src/test_parser.nit:126,5--58 | | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:126,5 | | | | | | |--AQid @../src/test_parser.nit:126,5--9 @@ -1166,16 +1166,16 @@ if (args.is_empty and not interactive) or need_help then | | | | | | | `--AEndStringExpr @../src/test_parser.nit:126,56--57 | | | | | | | `--TEndString }\" @../src/test_parser.nit:126,56--57 | | | | | | `--TCpar ) @../src/test_parser.nit:126,58 -127 return -| | | | | `--AReturnExpr @../src/test_parser.nit:127,5--10 +127 return +| | | | | `--AReturnExpr @../src/test_parser.nit:127,5--10 | | | | | `--TKwreturn return @../src/test_parser.nit:127,5--10 -128 end -| | | | `--ABlockExpr @../src/test_parser.nit:128,4--6 +128 end +| | | | `--ABlockExpr @../src/test_parser.nit:128,4--6 | | | | `--TKwend end @../src/test_parser.nit:128,4--6 -129 +129 if xml then -130 if xml then -| | | |--AIfExpr @../src/test_parser.nit:130,4--135,6 +130 if xml then +| | | |--AIfExpr @../src/test_parser.nit:130,4--135,6 | | | | |--TKwif if @../src/test_parser.nit:130,4--5 | | | | |--ACallExpr @../src/test_parser.nit:130,7--9 | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:130,7 @@ -1183,8 +1183,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--TId xml @../src/test_parser.nit:130,7--9 | | | | | `--AListExprs @../src/test_parser.nit:130,9 | | | | |--TKwthen then @../src/test_parser.nit:130,11--14 -131 tree.parentize_tokens -| | | | |--ABlockExpr @../src/test_parser.nit:131,5--132,32 +131 tree.parentize_tokens +| | | | |--ABlockExpr @../src/test_parser.nit:131,5--132,32 | | | | | |--ACallExpr @../src/test_parser.nit:131,5--25 | | | | | | |--ACallExpr @../src/test_parser.nit:131,5--8 | | | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:131,5 @@ -1194,8 +1194,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | | |--AQid @../src/test_parser.nit:131,10--25 | | | | | | | `--TId parentize_tokens @../src/test_parser.nit:131,10--25 | | | | | | `--AListExprs @../src/test_parser.nit:131,25 -132 tree.to_xml.write_to(stdout) -| | | | | `--ACallExpr @../src/test_parser.nit:132,5--32 +132 tree.to_xml.write_to(stdout) +| | | | | `--ACallExpr @../src/test_parser.nit:132,5--32 | | | | | |--ACallExpr @../src/test_parser.nit:132,5--15 | | | | | | |--ACallExpr @../src/test_parser.nit:132,5--8 | | | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:132,5 @@ -1215,8 +1215,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | | | `--TId stdout @../src/test_parser.nit:132,26--31 | | | | | | `--AListExprs @../src/test_parser.nit:132,31 | | | | | `--TCpar ) @../src/test_parser.nit:132,32 -133 else if not no_print then -| | | | |--TKwelse else @../src/test_parser.nit:133,4--7 +133 else if not no_print then +| | | | |--TKwelse else @../src/test_parser.nit:133,4--7 | | | | `--AIfExpr @../src/test_parser.nit:133,9--135,6 | | | | |--TKwif if @../src/test_parser.nit:133,9--10 | | | | |--ANotExpr @../src/test_parser.nit:133,12--23 @@ -1227,8 +1227,8 @@ if (args.is_empty and not interactive) or need_help then | | | | | | `--TId no_print @../src/test_parser.nit:133,16--23 | | | | | `--AListExprs @../src/test_parser.nit:133,23 | | | | |--TKwthen then @../src/test_parser.nit:133,25--28 -134 tree.dump_tree -| | | | |--ABlockExpr @../src/test_parser.nit:134,5--18 +134 tree.dump_tree +| | | | |--ABlockExpr @../src/test_parser.nit:134,5--18 | | | | | `--ACallExpr @../src/test_parser.nit:134,5--18 | | | | | |--ACallExpr @../src/test_parser.nit:134,5--8 | | | | | | |--AImplicitSelfExpr @../src/test_parser.nit:134,5 @@ -1238,14 +1238,14 @@ if (args.is_empty and not interactive) or need_help then | | | | | |--AQid @../src/test_parser.nit:134,10--18 | | | | | | `--TId dump_tree @../src/test_parser.nit:134,10--18 | | | | | `--AListExprs @../src/test_parser.nit:134,18 -135 end -| | | | `--ABlockExpr @../src/test_parser.nit:135,4--6 +135 end +| | | | `--ABlockExpr @../src/test_parser.nit:135,4--6 | | | | `--TKwend end @../src/test_parser.nit:135,4--6 -136 end -| | | `--TKwend end @../src/test_parser.nit:136,3--5 -137 end -| | `--TKwend end @../src/test_parser.nit:137,2--4 -138 end -| `--TKwend end @../src/test_parser.nit:138,1--3 -139 -`--EOF @../src/test_parser.nit:139,1 +136 end +| | | `--TKwend end @../src/test_parser.nit:136,3--5 +137 end +| | `--TKwend end @../src/test_parser.nit:137,2--4 +138 end +| `--TKwend end @../src/test_parser.nit:138,1--3 +139 +`--EOF @../src/test_parser.nit:139,1 diff --git a/tests/sav/test_parser_args6.res b/tests/sav/test_parser_args6.res index 9f0cc3e..9e7f49d 100644 --- a/tests/sav/test_parser_args6.res +++ b/tests/sav/test_parser_args6.res @@ -1,5 +1,5 @@ -1 var toto: Toto = new Toto.toto(toto+toto) -Start @1,1--42 +1 var toto: Toto = new Toto.toto(toto+toto) +Start @1,1--42 |--AModule @1,1--41 | `--AMainClassdef @1,1--41 | `--AMainMethPropdef @1,1--41 diff --git a/tests/sav/test_parser_args7.res b/tests/sav/test_parser_args7.res index 58227b7..b8320ad 100644 --- a/tests/sav/test_parser_args7.res +++ b/tests/sav/test_parser_args7.res @@ -1,8 +1,8 @@ ---> 1 1 -AIntegerExpr @1,1 +--> 1 1 +AIntegerExpr @1,1 `--TInteger 1 @1,1 ---> 1 hello world -ABlockExpr @1,1--11 +--> 1 hello world +ABlockExpr @1,1--11 `--ACallExpr @1,1--11 |--AImplicitSelfExpr @1,1 |--AQid @1,1--5 @@ -13,11 +13,11 @@ |--AQid @1,7--11 | `--TId world @1,7--11 `--AListExprs @1,11 ---> 1 "hello world" -AStringExpr @1,1--13 +--> 1 "hello world" +AStringExpr @1,1--13 `--TString \"hello world\" @1,1--13 ---> 1 for i in x do p -AForExpr @1,1--15 +--> 1 for i in x do p +AForExpr @1,1--15 |--TKwfor for @1,1--3 |--AForGroup @1,5--10 | |--TId i @1,5 @@ -33,8 +33,8 @@ |--AQid @1,15 | `--TId p @1,15 `--AListExprs @1,15 ---> 1 fun foo do z -AModule @1,1--12 +--> 1 fun foo do z +AModule @1,1--12 `--ATopClassdef @1,1--12 `--AMethPropdef @1,1--12 |--APublicVisibility @1,1 @@ -48,8 +48,8 @@ |--AQid @1,12 | `--TId z @1,12 `--AListExprs @1,12 ---> ... ... 1 for i in x do -AForExpr @1,1--3,3 +--> ... ... 1 for i in x do +AForExpr @1,1--3,3 |--TKwfor for @1,1--3 |--AForGroup @1,5--10 | |--TId i @1,5 @@ -60,17 +60,17 @@ | | `--TId x @1,10 | `--AListExprs @1,10 |--TKwdo do @1,12--13 -2 p -`--ABlockExpr @2,1--3,3 +2 p +`--ABlockExpr @2,1--3,3 |--ACallExpr @2,1 | |--AImplicitSelfExpr @2,1 | |--AQid @2,1 | | `--TId p @2,1 | `--AListExprs @2,1 -3 end - `--TKwend end @3,1--3 ---> ... ... ... ... 1 fun foo do -AModule @1,1--5,3 +3 end + `--TKwend end @3,1--3 +--> ... ... ... ... 1 fun foo do +AModule @1,1--5,3 `--ATopClassdef @1,1--5,3 `--AMethPropdef @1,1--5,3 |--APublicVisibility @1,1 @@ -79,8 +79,8 @@ | `--TId foo @1,5--7 |--ASignature @1,9 |--TKwdo do @1,9--10 -2 for i in x do - `--ABlockExpr @2,1--5,3 +2 for i in x do + `--ABlockExpr @2,1--5,3 |--AForExpr @2,1--4,3 | |--TKwfor for @2,1--3 | |--AForGroup @2,5--10 @@ -92,17 +92,17 @@ | | | `--TId x @2,10 | | `--AListExprs @2,10 | |--TKwdo do @2,12--13 -3 p - | `--ABlockExpr @3,1--4,3 +3 p + | `--ABlockExpr @3,1--4,3 | |--ACallExpr @3,1 | | |--AImplicitSelfExpr @3,1 | | |--AQid @3,1 | | | `--TId p @3,1 | | `--AListExprs @3,1 -4 end - | `--TKwend end @4,1--3 -5 end - `--TKwend end @5,1--3 +4 end + | `--TKwend end @4,1--3 +5 end + `--TKwend end @5,1--3 --> ... fun fun fun fu ^: Syntax Error: unexpected keyword 'fun'. --> %$&^*