From eccc0f8ff17e6cfbadf5cfc1aeb948256b70be58 Mon Sep 17 00:00:00 2001 From: ImShyMike <122023566+ImShyMike@users.noreply.github.com> Date: Mon, 27 Jan 2025 00:07:39 +0000 Subject: [PATCH] regenerate tests i fogot D: --- eryx/tests/test/builtins/builtins.eryx.ast | 26 +-- eryx/tests/test/builtins/test.info | 2 +- eryx/tests/test/classes/classes.eryx.ast | 68 ++++---- eryx/tests/test/classes/classes.eryx.output | 2 +- eryx/tests/test/classes/test.info | 2 +- eryx/tests/test/comments/comments.eryx.ast | 6 +- eryx/tests/test/comments/test.info | 2 +- eryx/tests/test/concat/concat.eryx.ast | 84 ++++----- eryx/tests/test/concat/test.info | 2 +- eryx/tests/test/enums/enums.eryx.ast | 26 +-- eryx/tests/test/enums/test.info | 2 +- eryx/tests/test/for_loops/for_loops.eryx.ast | 80 ++++----- eryx/tests/test/for_loops/test.info | 2 +- eryx/tests/test/functions/functions.eryx.ast | 42 ++--- eryx/tests/test/functions/test.info | 2 +- .../if_else_statements.eryx.ast | 134 +++++++------- eryx/tests/test/if_else_statements/test.info | 2 +- .../index_declaration.eryx.ast | 88 +++++----- eryx/tests/test/index_declaration/test.info | 2 +- eryx/tests/test/indexing/indexing.eryx.ast | 164 +++++++++--------- eryx/tests/test/indexing/test.info | 2 +- .../loop_break_continue.eryx.ast | 48 ++--- eryx/tests/test/loop_break_continue/test.info | 2 +- .../member_expressions.eryx.ast | 86 ++++----- eryx/tests/test/member_expressions/test.info | 2 +- .../operators_arithmetic.eryx.ast | 118 ++++++------- .../tests/test/operators_arithmetic/test.info | 2 +- .../operators_bitwise.eryx.ast | 86 ++++----- eryx/tests/test/operators_bitwise/test.info | 2 +- .../operators_comparison.eryx.ast | 62 +++---- .../tests/test/operators_comparison/test.info | 2 +- .../operators_logical.eryx.ast | 140 +++++++-------- eryx/tests/test/operators_logical/test.info | 2 +- .../tests/test/variable_declaration/test.info | 2 +- .../variable_declaration.eryx.ast | 90 +++++----- eryx/tests/test/variable_deletion/test.info | 2 +- .../variable_deletion.eryx.ast | 22 +-- eryx/tests/test/while_loops/test.info | 2 +- .../test/while_loops/while_loops.eryx.ast | 44 ++--- 39 files changed, 727 insertions(+), 727 deletions(-) diff --git a/eryx/tests/test/builtins/builtins.eryx.ast b/eryx/tests/test/builtins/builtins.eryx.ast index 7f19ab2..b665513 100644 --- a/eryx/tests/test/builtins/builtins.eryx.ast +++ b/eryx/tests/test/builtins/builtins.eryx.ast @@ -6,7 +6,7 @@ Program( names: None, position: ( 1, - 1, + 6, 6 ) ), @@ -17,7 +17,7 @@ Program( names: None, position: ( 2, - 1, + 7, 6 ) ), @@ -30,7 +30,7 @@ Program( ], position: ( 3, - 1, + 5, 4 ) ), @@ -41,7 +41,7 @@ Program( names: None, position: ( 4, - 1, + 7, 6 ) ), @@ -55,7 +55,7 @@ Program( NumericLiteral( position: ( 6, - 8, + 18, 1 ), value: 1.0 @@ -64,7 +64,7 @@ Program( NumericLiteral( position: ( 6, - 1, + 21, 1 ), value: 2.0 @@ -72,7 +72,7 @@ Program( ], position: ( 6, - 7, + 17, 1 ) ) @@ -82,20 +82,20 @@ Program( object: Identifier( position: ( 6, - 3, + 11, 4 ), symbol: "math" ), position: ( 6, - 3, + 11, 4 ), property: Identifier( position: ( 6, - 5, + 15, 3 ), symbol: "min" @@ -103,7 +103,7 @@ Program( ), position: ( 6, - 3, + 11, 4 ) ) @@ -111,14 +111,14 @@ Program( caller: Identifier( position: ( 6, - 1, + 6, 5 ), symbol: "print" ), position: ( 6, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/builtins/test.info b/eryx/tests/test/builtins/test.info index d247896..05c5652 100644 --- a/eryx/tests/test/builtins/test.info +++ b/eryx/tests/test/builtins/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: builtins Description: \ No newline at end of file diff --git a/eryx/tests/test/classes/classes.eryx.ast b/eryx/tests/test/classes/classes.eryx.ast index 573fa53..7d1b53c 100644 --- a/eryx/tests/test/classes/classes.eryx.ast +++ b/eryx/tests/test/classes/classes.eryx.ast @@ -12,7 +12,7 @@ Program( assigne: Identifier( position: ( 7, - 1, + 8, 3 ), symbol: "abc" @@ -20,13 +20,13 @@ Program( operator: None, position: ( 7, - 1, + 8, 3 ), value: NumericLiteral( position: ( 7, - 1, + 20, 1 ), value: 1.0 @@ -42,14 +42,14 @@ Program( ReturnStatement( position: ( 10, - 1, + 15, 6 ), value: BinaryExpression( left: Identifier( position: ( 10, - 1, + 17, 1 ), symbol: "a" @@ -57,13 +57,13 @@ Program( operator: "+", position: ( 10, - 1, + 17, 1 ), right: Identifier( position: ( 10, - 1, + 21, 1 ), symbol: "b" @@ -74,7 +74,7 @@ Program( name: "sum", position: ( 9, - 1, + 9, 4 ) ) @@ -82,7 +82,7 @@ Program( name: "Test", position: ( 1, - 1, + 5, 5 ) ), @@ -92,14 +92,14 @@ Program( identifier: Identifier( position: ( 14, - 1, + 8, 3 ), symbol: "tst" ), position: ( 14, - 1, + 4, 3 ), value: CallExpression( @@ -107,7 +107,7 @@ Program( StringLiteral( position: ( 14, - 3, + 23, 7 ), value: "aaaaa" @@ -116,7 +116,7 @@ Program( NumericLiteral( position: ( 14, - 1, + 26, 1 ), value: 7.0 @@ -125,7 +125,7 @@ Program( Identifier( position: ( 14, - 1, + 32, 4 ), symbol: "true" @@ -134,7 +134,7 @@ Program( NumericLiteral( position: ( 14, - 1, + 37, 3 ), value: 999.0 @@ -143,14 +143,14 @@ Program( caller: Identifier( position: ( 14, - 1, + 15, 4 ), symbol: "Test" ), position: ( 14, - 1, + 15, 4 ) ) @@ -161,7 +161,7 @@ Program( Identifier( position: ( 16, - 3, + 11, 4 ), symbol: "Test" @@ -170,14 +170,14 @@ Program( caller: Identifier( position: ( 16, - 1, + 6, 5 ), symbol: "print" ), position: ( 16, - 1, + 6, 5 ) ), @@ -187,7 +187,7 @@ Program( Identifier( position: ( 18, - 3, + 10, 3 ), symbol: "tst" @@ -196,14 +196,14 @@ Program( caller: Identifier( position: ( 18, - 1, + 6, 5 ), symbol: "print" ), position: ( 18, - 1, + 6, 5 ) ), @@ -215,20 +215,20 @@ Program( object: Identifier( position: ( 20, - 3, + 10, 3 ), symbol: "tst" ), position: ( 20, - 3, + 10, 3 ), property: Identifier( position: ( 20, - 5, + 12, 1 ), symbol: "a" @@ -240,20 +240,20 @@ Program( object: Identifier( position: ( 20, - 1, + 17, 3 ), symbol: "tst" ), position: ( 20, - 1, + 17, 3 ), property: StringLiteral( position: ( 20, - 3, + 21, 3 ), value: "a" @@ -265,20 +265,20 @@ Program( object: Identifier( position: ( 20, - 1, + 28, 4 ), symbol: "Test" ), position: ( 20, - 1, + 28, 4 ), property: Identifier( position: ( 20, - 3, + 32, 3 ), symbol: "abc" @@ -288,14 +288,14 @@ Program( caller: Identifier( position: ( 20, - 1, + 6, 5 ), symbol: "print" ), position: ( 20, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/classes/classes.eryx.output b/eryx/tests/test/classes/classes.eryx.output index fd0e1db..5e0e585 100644 --- a/eryx/tests/test/classes/classes.eryx.output +++ b/eryx/tests/test/classes/classes.eryx.output @@ -1,3 +1,3 @@ -Test(yes, a, c, g){ abc: 1, sum: } +Test(yes, a, c, g){ abc: 1, sum: , } { yes: "aaaaa", a: 7, c: true, g: 999, abc: 1, sum: } 7 7 1 \ No newline at end of file diff --git a/eryx/tests/test/classes/test.info b/eryx/tests/test/classes/test.info index 1a54ac2..54b9b6b 100644 --- a/eryx/tests/test/classes/test.info +++ b/eryx/tests/test/classes/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: classes Description: \ No newline at end of file diff --git a/eryx/tests/test/comments/comments.eryx.ast b/eryx/tests/test/comments/comments.eryx.ast index fb2529b..e413b78 100644 --- a/eryx/tests/test/comments/comments.eryx.ast +++ b/eryx/tests/test/comments/comments.eryx.ast @@ -5,7 +5,7 @@ Program( StringLiteral( position: ( 2, - 3, + 60, 22 ), value: "this will be printed" @@ -14,14 +14,14 @@ Program( caller: Identifier( position: ( 2, - 1, + 37, 5 ), symbol: "print" ), position: ( 2, - 1, + 37, 5 ) ) diff --git a/eryx/tests/test/comments/test.info b/eryx/tests/test/comments/test.info index 6e5ab1d..148fd58 100644 --- a/eryx/tests/test/comments/test.info +++ b/eryx/tests/test/comments/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: comments Description: \ No newline at end of file diff --git a/eryx/tests/test/concat/concat.eryx.ast b/eryx/tests/test/concat/concat.eryx.ast index 4faccd1..66c54d8 100644 --- a/eryx/tests/test/concat/concat.eryx.ast +++ b/eryx/tests/test/concat/concat.eryx.ast @@ -5,14 +5,14 @@ Program( identifier: Identifier( position: ( 1, - 1, + 7, 3 ), symbol: "lst" ), position: ( 1, - 1, + 3, 3 ), value: ArrayLiteral( @@ -20,7 +20,7 @@ Program( NumericLiteral( position: ( 1, - 2, + 12, 1 ), value: 1.0 @@ -29,7 +29,7 @@ Program( NumericLiteral( position: ( 1, - 1, + 15, 1 ), value: 2.0 @@ -38,7 +38,7 @@ Program( NumericLiteral( position: ( 1, - 1, + 18, 1 ), value: 3.0 @@ -46,7 +46,7 @@ Program( ], position: ( 1, - 1, + 11, 1 ) ) @@ -57,20 +57,20 @@ Program( identifier: Identifier( position: ( 3, - 1, + 8, 3 ), symbol: "obj" ), position: ( 3, - 1, + 4, 3 ), value: ObjectLiteral( position: ( 3, - 1, + 12, 1 ), properties: [ @@ -78,13 +78,13 @@ Program( key: "a", position: ( 3, - 2, + 17, 1 ), value: NumericLiteral( position: ( 3, - 1, + 16, 1 ), value: 1.0 @@ -95,13 +95,13 @@ Program( key: "b", position: ( 3, - 2, + 23, 1 ), value: NumericLiteral( position: ( 3, - 1, + 22, 1 ), value: 3.0 @@ -116,20 +116,20 @@ Program( identifier: Identifier( position: ( 5, - 1, + 11, 6 ), symbol: "string" ), position: ( 5, - 1, + 4, 3 ), value: StringLiteral( position: ( 5, - 1, + 22, 8 ), value: "Hello," @@ -142,7 +142,7 @@ Program( left: Identifier( position: ( 7, - 3, + 10, 3 ), symbol: "lst" @@ -150,7 +150,7 @@ Program( operator: "+", position: ( 7, - 3, + 10, 3 ), right: ArrayLiteral( @@ -158,7 +158,7 @@ Program( NumericLiteral( position: ( 7, - 2, + 15, 1 ), value: 4.0 @@ -167,7 +167,7 @@ Program( NumericLiteral( position: ( 7, - 1, + 18, 1 ), value: 5.0 @@ -175,7 +175,7 @@ Program( ], position: ( 7, - 1, + 14, 1 ) ) @@ -184,14 +184,14 @@ Program( caller: Identifier( position: ( 7, - 1, + 6, 5 ), symbol: "print" ), position: ( 7, - 1, + 6, 5 ) ), @@ -202,7 +202,7 @@ Program( left: Identifier( position: ( 8, - 3, + 10, 3 ), symbol: "obj" @@ -210,13 +210,13 @@ Program( operator: "+", position: ( 8, - 3, + 10, 3 ), right: ObjectLiteral( position: ( 8, - 1, + 14, 1 ), properties: [ @@ -224,13 +224,13 @@ Program( key: "c", position: ( 8, - 2, + 19, 1 ), value: NumericLiteral( position: ( 8, - 1, + 18, 1 ), value: 6.0 @@ -243,14 +243,14 @@ Program( caller: Identifier( position: ( 8, - 1, + 6, 5 ), symbol: "print" ), position: ( 8, - 1, + 6, 5 ) ), @@ -261,7 +261,7 @@ Program( left: Identifier( position: ( 9, - 3, + 13, 6 ), symbol: "string" @@ -269,13 +269,13 @@ Program( operator: "+", position: ( 9, - 3, + 13, 6 ), right: StringLiteral( position: ( 9, - 1, + 25, 9 ), value: " World!" @@ -285,14 +285,14 @@ Program( caller: Identifier( position: ( 9, - 1, + 6, 5 ), symbol: "print" ), position: ( 9, - 1, + 6, 5 ) ), @@ -303,7 +303,7 @@ Program( left: Identifier( position: ( 10, - 3, + 10, 3 ), symbol: "obj" @@ -311,13 +311,13 @@ Program( operator: "+", position: ( 10, - 3, + 10, 3 ), right: ObjectLiteral( position: ( 10, - 1, + 14, 1 ), properties: [ @@ -325,13 +325,13 @@ Program( key: "a", position: ( 10, - 2, + 19, 1 ), value: NumericLiteral( position: ( 10, - 1, + 18, 1 ), value: 6.0 @@ -344,14 +344,14 @@ Program( caller: Identifier( position: ( 10, - 1, + 6, 5 ), symbol: "print" ), position: ( 10, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/concat/test.info b/eryx/tests/test/concat/test.info index 036eb85..1563748 100644 --- a/eryx/tests/test/concat/test.info +++ b/eryx/tests/test/concat/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: concat Description: String, array and object concatenation \ No newline at end of file diff --git a/eryx/tests/test/enums/enums.eryx.ast b/eryx/tests/test/enums/enums.eryx.ast index 35a56fa..f26918b 100644 --- a/eryx/tests/test/enums/enums.eryx.ast +++ b/eryx/tests/test/enums/enums.eryx.ast @@ -4,14 +4,14 @@ Program( name: "Colors", position: ( 1, - 1, + 4, 4 ), values: [ Identifier( position: ( 2, - 1, + 10, 5 ), symbol: "green" @@ -20,7 +20,7 @@ Program( Identifier( position: ( 3, - 1, + 10, 5 ), symbol: "black" @@ -29,7 +29,7 @@ Program( Identifier( position: ( 4, - 1, + 9, 4 ), symbol: "cyan" @@ -38,7 +38,7 @@ Program( Identifier( position: ( 5, - 1, + 12, 7 ), symbol: "magenta" @@ -51,7 +51,7 @@ Program( Identifier( position: ( 8, - 3, + 13, 6 ), symbol: "Colors" @@ -60,14 +60,14 @@ Program( caller: Identifier( position: ( 8, - 1, + 6, 5 ), symbol: "print" ), position: ( 8, - 1, + 6, 5 ) ), @@ -79,20 +79,20 @@ Program( object: Identifier( position: ( 10, - 3, + 13, 6 ), symbol: "Colors" ), position: ( 10, - 3, + 13, 6 ), property: Identifier( position: ( 10, - 5, + 19, 5 ), symbol: "green" @@ -102,14 +102,14 @@ Program( caller: Identifier( position: ( 10, - 1, + 6, 5 ), symbol: "print" ), position: ( 10, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/enums/test.info b/eryx/tests/test/enums/test.info index 534b48d..ea2de06 100644 --- a/eryx/tests/test/enums/test.info +++ b/eryx/tests/test/enums/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: enums Description: \ No newline at end of file diff --git a/eryx/tests/test/for_loops/for_loops.eryx.ast b/eryx/tests/test/for_loops/for_loops.eryx.ast index b2a524f..051b3ce 100644 --- a/eryx/tests/test/for_loops/for_loops.eryx.ast +++ b/eryx/tests/test/for_loops/for_loops.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 10, 4 ), symbol: "item" ), position: ( 1, - 1, + 5, 5 ), value: NumericLiteral( position: ( 1, - 1, + 17, 4 ), value: 4000.0 @@ -32,7 +32,7 @@ Program( Identifier( position: ( 4, - 3, + 15, 4 ), symbol: "item" @@ -41,14 +41,14 @@ Program( caller: Identifier( position: ( 4, - 1, + 10, 5 ), symbol: "print" ), position: ( 4, - 1, + 10, 5 ) ) @@ -58,7 +58,7 @@ Program( NumericLiteral( position: ( 3, - 2, + 15, 1 ), value: 1.0 @@ -67,7 +67,7 @@ Program( NumericLiteral( position: ( 3, - 1, + 18, 1 ), value: 2.0 @@ -76,7 +76,7 @@ Program( NumericLiteral( position: ( 3, - 1, + 21, 1 ), value: 3.0 @@ -85,7 +85,7 @@ Program( NumericLiteral( position: ( 3, - 1, + 24, 1 ), value: 4.0 @@ -94,7 +94,7 @@ Program( NumericLiteral( position: ( 3, - 1, + 27, 1 ), value: 5.0 @@ -102,19 +102,19 @@ Program( ], position: ( 3, - 1, + 14, 1 ) ), position: ( 3, - 1, + 4, 3 ), variable: Identifier( position: ( 3, - 1, + 9, 4 ), symbol: "item" @@ -128,7 +128,7 @@ Program( Identifier( position: ( 8, - 3, + 15, 4 ), symbol: "item" @@ -137,14 +137,14 @@ Program( caller: Identifier( position: ( 8, - 1, + 10, 5 ), symbol: "print" ), position: ( 8, - 1, + 10, 5 ) ) @@ -154,7 +154,7 @@ Program( NumericLiteral( position: ( 7, - 3, + 20, 1 ), value: 1.0 @@ -163,7 +163,7 @@ Program( NumericLiteral( position: ( 7, - 1, + 23, 1 ), value: 6.0 @@ -172,26 +172,26 @@ Program( caller: Identifier( position: ( 7, - 1, + 18, 5 ), symbol: "range" ), position: ( 7, - 1, + 18, 5 ) ), position: ( 7, - 1, + 4, 3 ), variable: Identifier( position: ( 7, - 1, + 9, 4 ), symbol: "item" @@ -203,14 +203,14 @@ Program( identifier: Identifier( position: ( 11, - 1, + 10, 3 ), symbol: "lst" ), position: ( 11, - 1, + 6, 5 ), value: ArrayLiteral( @@ -218,7 +218,7 @@ Program( NumericLiteral( position: ( 11, - 2, + 15, 1 ), value: 1.0 @@ -227,7 +227,7 @@ Program( NumericLiteral( position: ( 11, - 1, + 18, 1 ), value: 2.0 @@ -236,7 +236,7 @@ Program( NumericLiteral( position: ( 11, - 1, + 21, 1 ), value: 3.0 @@ -245,7 +245,7 @@ Program( NumericLiteral( position: ( 11, - 1, + 24, 1 ), value: 4.0 @@ -254,7 +254,7 @@ Program( NumericLiteral( position: ( 11, - 1, + 27, 1 ), value: 5.0 @@ -262,7 +262,7 @@ Program( ], position: ( 11, - 1, + 14, 1 ) ) @@ -275,7 +275,7 @@ Program( Identifier( position: ( 13, - 3, + 15, 4 ), symbol: "item" @@ -284,14 +284,14 @@ Program( caller: Identifier( position: ( 13, - 1, + 10, 5 ), symbol: "print" ), position: ( 13, - 1, + 10, 5 ) ) @@ -299,20 +299,20 @@ Program( iterator: Identifier( position: ( 12, - 1, + 16, 3 ), symbol: "lst" ), position: ( 12, - 1, + 4, 3 ), variable: Identifier( position: ( 12, - 1, + 9, 4 ), symbol: "item" @@ -324,7 +324,7 @@ Program( Identifier( position: ( 16, - 3, + 11, 4 ), symbol: "item" @@ -333,14 +333,14 @@ Program( caller: Identifier( position: ( 16, - 1, + 6, 5 ), symbol: "print" ), position: ( 16, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/for_loops/test.info b/eryx/tests/test/for_loops/test.info index efd55f4..aeedb87 100644 --- a/eryx/tests/test/for_loops/test.info +++ b/eryx/tests/test/for_loops/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: for_loops Description: \ No newline at end of file diff --git a/eryx/tests/test/functions/functions.eryx.ast b/eryx/tests/test/functions/functions.eryx.ast index 082fad0..d7ee169 100644 --- a/eryx/tests/test/functions/functions.eryx.ast +++ b/eryx/tests/test/functions/functions.eryx.ast @@ -14,7 +14,7 @@ Program( ReturnStatement( position: ( 3, - 1, + 15, 6 ), value: BinaryExpression( @@ -22,7 +22,7 @@ Program( left: Identifier( position: ( 3, - 1, + 17, 1 ), symbol: "x" @@ -30,13 +30,13 @@ Program( operator: "+", position: ( 3, - 1, + 17, 1 ), right: Identifier( position: ( 3, - 1, + 21, 1 ), symbol: "y" @@ -45,13 +45,13 @@ Program( operator: "+", position: ( 3, - 1, + 17, 1 ), right: Identifier( position: ( 3, - 1, + 30, 6 ), symbol: "offset" @@ -62,7 +62,7 @@ Program( name: "add", position: ( 2, - 1, + 9, 4 ) ), @@ -70,13 +70,13 @@ Program( ReturnStatement( position: ( 6, - 1, + 11, 6 ), value: Identifier( position: ( 6, - 1, + 15, 3 ), symbol: "add" @@ -86,7 +86,7 @@ Program( name: "makeAdder", position: ( 1, - 1, + 4, 4 ) ), @@ -96,14 +96,14 @@ Program( identifier: Identifier( position: ( 9, - 1, + 10, 5 ), symbol: "adder" ), position: ( 9, - 1, + 4, 3 ), value: CallExpression( @@ -111,7 +111,7 @@ Program( NumericLiteral( position: ( 9, - 3, + 25, 2 ), value: 10.0 @@ -120,14 +120,14 @@ Program( caller: Identifier( position: ( 9, - 1, + 22, 9 ), symbol: "makeAdder" ), position: ( 9, - 1, + 22, 9 ) ) @@ -140,7 +140,7 @@ Program( NumericLiteral( position: ( 10, - 5, + 15, 2 ), value: 10.0 @@ -149,7 +149,7 @@ Program( NumericLiteral( position: ( 10, - 1, + 18, 1 ), value: 5.0 @@ -158,14 +158,14 @@ Program( caller: Identifier( position: ( 10, - 3, + 12, 5 ), symbol: "adder" ), position: ( 10, - 3, + 12, 5 ) ) @@ -173,14 +173,14 @@ Program( caller: Identifier( position: ( 10, - 1, + 6, 5 ), symbol: "print" ), position: ( 10, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/functions/test.info b/eryx/tests/test/functions/test.info index b6e2066..592561c 100644 --- a/eryx/tests/test/functions/test.info +++ b/eryx/tests/test/functions/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: functions Description: Function declarations and nested functions \ No newline at end of file diff --git a/eryx/tests/test/if_else_statements/if_else_statements.eryx.ast b/eryx/tests/test/if_else_statements/if_else_statements.eryx.ast index c667d91..299ad02 100644 --- a/eryx/tests/test/if_else_statements/if_else_statements.eryx.ast +++ b/eryx/tests/test/if_else_statements/if_else_statements.eryx.ast @@ -5,7 +5,7 @@ Program( left: NumericLiteral( position: ( 1, - 2, + 5, 1 ), value: 1.0 @@ -13,13 +13,13 @@ Program( operator: "==", position: ( 1, - 2, + 5, 1 ), right: NumericLiteral( position: ( 1, - 1, + 10, 1 ), value: 1.0 @@ -31,7 +31,7 @@ Program( StringLiteral( position: ( 4, - 3, + 18, 7 ), value: "wrong" @@ -40,21 +40,21 @@ Program( caller: Identifier( position: ( 4, - 1, + 10, 5 ), symbol: "print" ), position: ( 4, - 1, + 10, 5 ) ) ], position: ( 1, - 1, + 2, 2 ), then: [ @@ -63,7 +63,7 @@ Program( StringLiteral( position: ( 2, - 3, + 14, 3 ), value: "1" @@ -72,14 +72,14 @@ Program( caller: Identifier( position: ( 2, - 1, + 10, 5 ), symbol: "print" ), position: ( 2, - 1, + 10, 5 ) ) @@ -90,7 +90,7 @@ Program( condition: Identifier( position: ( 7, - 2, + 9, 4 ), symbol: "true" @@ -99,7 +99,7 @@ Program( ], position: ( 7, - 1, + 3, 2 ), then: [ @@ -108,7 +108,7 @@ Program( StringLiteral( position: ( 8, - 3, + 29, 18 ), value: "direct var works" @@ -117,14 +117,14 @@ Program( caller: Identifier( position: ( 8, - 1, + 10, 5 ), symbol: "print" ), position: ( 8, - 1, + 10, 5 ) ) @@ -138,7 +138,7 @@ Program( NumericLiteral( position: ( 11, - 3, + 7, 1 ), value: 1.0 @@ -147,7 +147,7 @@ Program( NumericLiteral( position: ( 11, - 1, + 10, 1 ), value: 2.0 @@ -156,7 +156,7 @@ Program( NumericLiteral( position: ( 11, - 1, + 13, 1 ), value: 3.0 @@ -164,14 +164,14 @@ Program( ], position: ( 11, - 2, + 6, 1 ) ), operator: "!=", position: ( 11, - 2, + 6, 1 ), right: ArrayLiteral( @@ -179,7 +179,7 @@ Program( NumericLiteral( position: ( 11, - 2, + 20, 1 ), value: 1.0 @@ -188,7 +188,7 @@ Program( NumericLiteral( position: ( 11, - 1, + 23, 1 ), value: 2.0 @@ -197,7 +197,7 @@ Program( NumericLiteral( position: ( 11, - 1, + 26, 1 ), value: 3.0 @@ -205,7 +205,7 @@ Program( ], position: ( 11, - 1, + 19, 1 ) ) @@ -214,7 +214,7 @@ Program( ], position: ( 11, - 1, + 3, 2 ), then: [ @@ -223,7 +223,7 @@ Program( StringLiteral( position: ( 12, - 3, + 35, 24 ), value: "this should not happen" @@ -232,14 +232,14 @@ Program( caller: Identifier( position: ( 12, - 1, + 10, 5 ), symbol: "print" ), position: ( 12, - 1, + 10, 5 ) ) @@ -251,7 +251,7 @@ Program( left: ObjectLiteral( position: ( 15, - 2, + 6, 1 ), properties: [ @@ -259,13 +259,13 @@ Program( key: "a", position: ( 15, - 6, + 10, 1 ), value: NumericLiteral( position: ( 15, - 5, + 9, 1 ), value: 1.0 @@ -276,13 +276,13 @@ Program( key: "b", position: ( 15, - 4, + 15, 1 ), value: NumericLiteral( position: ( 15, - 3, + 14, 1 ), value: 6.0 @@ -293,13 +293,13 @@ Program( operator: "==", position: ( 15, - 2, + 6, 1 ), right: ObjectLiteral( position: ( 15, - 1, + 20, 1 ), properties: [ @@ -307,13 +307,13 @@ Program( key: "a", position: ( 15, - 2, + 25, 1 ), value: NumericLiteral( position: ( 15, - 1, + 24, 1 ), value: 1.0 @@ -324,13 +324,13 @@ Program( key: "b", position: ( 15, - 2, + 31, 1 ), value: NumericLiteral( position: ( 15, - 1, + 30, 1 ), value: 6.0 @@ -343,7 +343,7 @@ Program( ], position: ( 15, - 1, + 3, 2 ), then: [ @@ -352,7 +352,7 @@ Program( StringLiteral( position: ( 16, - 3, + 26, 15 ), value: "dicts working" @@ -361,14 +361,14 @@ Program( caller: Identifier( position: ( 16, - 1, + 10, 5 ), symbol: "print" ), position: ( 16, - 1, + 10, 5 ) ) @@ -379,7 +379,7 @@ Program( condition: Identifier( position: ( 19, - 2, + 9, 4 ), symbol: "null" @@ -388,7 +388,7 @@ Program( ], position: ( 19, - 1, + 3, 2 ), then: [ @@ -397,7 +397,7 @@ Program( StringLiteral( position: ( 20, - 3, + 19, 8 ), value: "broken" @@ -406,14 +406,14 @@ Program( caller: Identifier( position: ( 20, - 1, + 10, 5 ), symbol: "print" ), position: ( 20, - 1, + 10, 5 ) ) @@ -425,7 +425,7 @@ Program( left: Identifier( position: ( 23, - 2, + 10, 5 ), symbol: "print" @@ -433,13 +433,13 @@ Program( operator: "==", position: ( 23, - 2, + 10, 5 ), right: Identifier( position: ( 23, - 1, + 19, 5 ), symbol: "print" @@ -449,7 +449,7 @@ Program( ], position: ( 23, - 1, + 3, 2 ), then: [ @@ -458,7 +458,7 @@ Program( StringLiteral( position: ( 24, - 3, + 30, 19 ), value: "native funcs work" @@ -467,14 +467,14 @@ Program( caller: Identifier( position: ( 24, - 1, + 10, 5 ), symbol: "print" ), position: ( 24, - 1, + 10, 5 ) ) @@ -490,14 +490,14 @@ Program( ReturnStatement( position: ( 27, - 1, + 24, 6 ), value: BinaryExpression( left: Identifier( position: ( 27, - 1, + 26, 1 ), symbol: "a" @@ -505,13 +505,13 @@ Program( operator: "+", position: ( 27, - 1, + 26, 1 ), right: Identifier( position: ( 27, - 1, + 30, 1 ), symbol: "b" @@ -522,7 +522,7 @@ Program( name: "add", position: ( 27, - 1, + 5, 4 ) ), @@ -532,7 +532,7 @@ Program( left: Identifier( position: ( 29, - 2, + 8, 3 ), symbol: "add" @@ -540,13 +540,13 @@ Program( operator: "==", position: ( 29, - 2, + 8, 3 ), right: Identifier( position: ( 29, - 1, + 15, 3 ), symbol: "add" @@ -556,7 +556,7 @@ Program( ], position: ( 29, - 1, + 3, 2 ), then: [ @@ -565,7 +565,7 @@ Program( StringLiteral( position: ( 30, - 3, + 23, 12 ), value: "funcs work" @@ -574,14 +574,14 @@ Program( caller: Identifier( position: ( 30, - 1, + 10, 5 ), symbol: "print" ), position: ( 30, - 1, + 10, 5 ) ) diff --git a/eryx/tests/test/if_else_statements/test.info b/eryx/tests/test/if_else_statements/test.info index 878ed53..8baba92 100644 --- a/eryx/tests/test/if_else_statements/test.info +++ b/eryx/tests/test/if_else_statements/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: if_else_statements Description: If/Else statements with many types \ No newline at end of file diff --git a/eryx/tests/test/index_declaration/index_declaration.eryx.ast b/eryx/tests/test/index_declaration/index_declaration.eryx.ast index 2ea2d45..a316fc8 100644 --- a/eryx/tests/test/index_declaration/index_declaration.eryx.ast +++ b/eryx/tests/test/index_declaration/index_declaration.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 7, 3 ), symbol: "obj" ), position: ( 1, - 1, + 3, 3 ), value: ObjectLiteral( position: ( 1, - 1, + 11, 1 ), properties: [ @@ -26,13 +26,13 @@ Program( key: "nested", position: ( 8, - 1, + 2, 1 ), value: ObjectLiteral( position: ( 2, - 1, + 14, 1 ), properties: [ @@ -40,13 +40,13 @@ Program( key: "nested_val", position: ( 3, - 2, + 25, 1 ), value: NumericLiteral( position: ( 3, - 1, + 24, 3 ), value: 100.0 @@ -57,13 +57,13 @@ Program( key: "nest_squared", position: ( 7, - 1, + 6, 1 ), value: ObjectLiteral( position: ( 4, - 1, + 24, 1 ), properties: [ @@ -71,13 +71,13 @@ Program( key: "maybe", position: ( 6, - 1, + 10, 1 ), value: StringLiteral( position: ( 5, - 1, + 27, 7 ), value: "works" @@ -98,14 +98,14 @@ Program( identifier: Identifier( position: ( 10, - 1, + 8, 3 ), symbol: "lst" ), position: ( 10, - 1, + 4, 3 ), value: ArrayLiteral( @@ -113,7 +113,7 @@ Program( NumericLiteral( position: ( 10, - 2, + 13, 1 ), value: 1.0 @@ -122,7 +122,7 @@ Program( NumericLiteral( position: ( 10, - 1, + 16, 1 ), value: 2.0 @@ -131,7 +131,7 @@ Program( NumericLiteral( position: ( 10, - 1, + 19, 1 ), value: 3.0 @@ -139,7 +139,7 @@ Program( ], position: ( 10, - 1, + 12, 1 ) ) @@ -153,20 +153,20 @@ Program( object: Identifier( position: ( 12, - 1, + 4, 3 ), symbol: "obj" ), position: ( 12, - 1, + 4, 3 ), property: Identifier( position: ( 12, - 3, + 11, 6 ), symbol: "nested" @@ -174,13 +174,13 @@ Program( ), position: ( 12, - 1, + 4, 3 ), property: Identifier( position: ( 12, - 5, + 22, 10 ), symbol: "nested_val" @@ -189,13 +189,13 @@ Program( operator: None, position: ( 12, - 1, + 4, 3 ), value: NumericLiteral( position: ( 12, - 1, + 27, 2 ), value: 80.0 @@ -212,20 +212,20 @@ Program( object: Identifier( position: ( 13, - 1, + 4, 3 ), symbol: "obj" ), position: ( 13, - 1, + 4, 3 ), property: Identifier( position: ( 13, - 3, + 11, 6 ), symbol: "nested" @@ -233,13 +233,13 @@ Program( ), position: ( 13, - 1, + 4, 3 ), property: Identifier( position: ( 13, - 5, + 24, 12 ), symbol: "nest_squared" @@ -247,13 +247,13 @@ Program( ), position: ( 13, - 1, + 4, 3 ), property: Identifier( position: ( 13, - 7, + 30, 5 ), symbol: "maybe" @@ -262,13 +262,13 @@ Program( operator: None, position: ( 13, - 1, + 4, 3 ), value: StringLiteral( position: ( 13, - 1, + 38, 5 ), value: "yep" @@ -281,20 +281,20 @@ Program( object: Identifier( position: ( 15, - 1, + 4, 3 ), symbol: "lst" ), position: ( 15, - 1, + 4, 3 ), property: NumericLiteral( position: ( 15, - 3, + 6, 1 ), value: 0.0 @@ -303,13 +303,13 @@ Program( operator: None, position: ( 15, - 1, + 4, 3 ), value: NumericLiteral( position: ( 15, - 1, + 12, 2 ), value: 10.0 @@ -321,7 +321,7 @@ Program( Identifier( position: ( 17, - 3, + 10, 3 ), symbol: "obj" @@ -330,14 +330,14 @@ Program( caller: Identifier( position: ( 17, - 1, + 6, 5 ), symbol: "print" ), position: ( 17, - 1, + 6, 5 ) ), @@ -347,7 +347,7 @@ Program( Identifier( position: ( 18, - 3, + 10, 3 ), symbol: "lst" @@ -356,14 +356,14 @@ Program( caller: Identifier( position: ( 18, - 1, + 6, 5 ), symbol: "print" ), position: ( 18, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/index_declaration/test.info b/eryx/tests/test/index_declaration/test.info index 1fe686c..91bc28d 100644 --- a/eryx/tests/test/index_declaration/test.info +++ b/eryx/tests/test/index_declaration/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: index_declaration Description: \ No newline at end of file diff --git a/eryx/tests/test/indexing/indexing.eryx.ast b/eryx/tests/test/indexing/indexing.eryx.ast index e20d0d1..c655ce0 100644 --- a/eryx/tests/test/indexing/indexing.eryx.ast +++ b/eryx/tests/test/indexing/indexing.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 7, 3 ), symbol: "obj" ), position: ( 1, - 1, + 3, 3 ), value: ObjectLiteral( position: ( 1, - 1, + 11, 1 ), properties: [ @@ -26,13 +26,13 @@ Program( key: "nested", position: ( 8, - 1, + 2, 1 ), value: ObjectLiteral( position: ( 2, - 1, + 14, 1 ), properties: [ @@ -40,13 +40,13 @@ Program( key: "nested_val", position: ( 3, - 2, + 25, 1 ), value: NumericLiteral( position: ( 3, - 1, + 24, 3 ), value: 100.0 @@ -57,13 +57,13 @@ Program( key: "nest_squared", position: ( 7, - 1, + 6, 1 ), value: ObjectLiteral( position: ( 4, - 1, + 24, 1 ), properties: [ @@ -71,13 +71,13 @@ Program( key: "maybe", position: ( 6, - 1, + 10, 1 ), value: StringLiteral( position: ( 5, - 1, + 27, 7 ), value: "works" @@ -98,14 +98,14 @@ Program( identifier: Identifier( position: ( 10, - 1, + 8, 3 ), symbol: "lst" ), position: ( 10, - 1, + 4, 3 ), value: ArrayLiteral( @@ -113,7 +113,7 @@ Program( NumericLiteral( position: ( 10, - 2, + 13, 1 ), value: 1.0 @@ -122,7 +122,7 @@ Program( NumericLiteral( position: ( 10, - 1, + 16, 1 ), value: 2.0 @@ -131,7 +131,7 @@ Program( NumericLiteral( position: ( 10, - 1, + 19, 1 ), value: 3.0 @@ -139,7 +139,7 @@ Program( ], position: ( 10, - 1, + 12, 1 ) ) @@ -150,20 +150,20 @@ Program( identifier: Identifier( position: ( 12, - 1, + 11, 6 ), symbol: "string" ), position: ( 12, - 1, + 4, 3 ), value: StringLiteral( position: ( 12, - 1, + 29, 15 ), value: "Hello, World!" @@ -175,20 +175,20 @@ Program( identifier: Identifier( position: ( 14, - 1, + 8, 3 ), symbol: "num" ), position: ( 14, - 1, + 4, 3 ), value: NumericLiteral( position: ( 14, - 1, + 12, 1 ), value: 2.0 @@ -202,20 +202,20 @@ Program( object: Identifier( position: ( 16, - 3, + 10, 3 ), symbol: "lst" ), position: ( 16, - 3, + 10, 3 ), property: NumericLiteral( position: ( 16, - 5, + 12, 1 ), value: 0.0 @@ -229,20 +229,20 @@ Program( object: Identifier( position: ( 16, - 1, + 18, 3 ), symbol: "obj" ), position: ( 16, - 1, + 18, 3 ), property: Identifier( position: ( 16, - 3, + 25, 6 ), symbol: "nested" @@ -250,13 +250,13 @@ Program( ), position: ( 16, - 1, + 18, 3 ), property: Identifier( position: ( 16, - 5, + 36, 10 ), symbol: "nested_val" @@ -272,20 +272,20 @@ Program( object: Identifier( position: ( 16, - 1, + 41, 3 ), symbol: "obj" ), position: ( 16, - 1, + 41, 3 ), property: Identifier( position: ( 16, - 3, + 48, 6 ), symbol: "nested" @@ -293,13 +293,13 @@ Program( ), position: ( 16, - 1, + 41, 3 ), property: Identifier( position: ( 16, - 5, + 61, 12 ), symbol: "nest_squared" @@ -307,13 +307,13 @@ Program( ), position: ( 16, - 1, + 41, 3 ), property: Identifier( position: ( 16, - 7, + 67, 5 ), symbol: "maybe" @@ -325,20 +325,20 @@ Program( object: Identifier( position: ( 16, - 1, + 75, 6 ), symbol: "string" ), position: ( 16, - 1, + 75, 6 ), property: NumericLiteral( position: ( 16, - 3, + 77, 1 ), value: 0.0 @@ -350,20 +350,20 @@ Program( object: Identifier( position: ( 16, - 1, + 86, 6 ), symbol: "string" ), position: ( 16, - 1, + 86, 6 ), property: NumericLiteral( position: ( 16, - 3, + 88, 1 ), value: 7.0 @@ -373,14 +373,14 @@ Program( caller: Identifier( position: ( 16, - 1, + 6, 5 ), symbol: "print" ), position: ( 16, - 1, + 6, 5 ) ), @@ -392,20 +392,20 @@ Program( object: Identifier( position: ( 18, - 3, + 10, 3 ), symbol: "lst" ), position: ( 18, - 3, + 10, 3 ), property: NumericLiteral( position: ( 18, - 5, + 12, 1 ), value: 1.0 @@ -419,20 +419,20 @@ Program( object: Identifier( position: ( 18, - 1, + 18, 3 ), symbol: "obj" ), position: ( 18, - 1, + 18, 3 ), property: StringLiteral( position: ( 18, - 3, + 27, 8 ), value: "nested" @@ -440,13 +440,13 @@ Program( ), position: ( 18, - 1, + 18, 3 ), property: Identifier( position: ( 18, - 6, + 39, 10 ), symbol: "nested_val" @@ -462,20 +462,20 @@ Program( object: Identifier( position: ( 18, - 1, + 44, 3 ), symbol: "obj" ), position: ( 18, - 1, + 44, 3 ), property: Identifier( position: ( 18, - 3, + 51, 6 ), symbol: "nested" @@ -483,13 +483,13 @@ Program( ), position: ( 18, - 1, + 44, 3 ), property: StringLiteral( position: ( 18, - 5, + 66, 14 ), value: "nest_squared" @@ -497,13 +497,13 @@ Program( ), position: ( 18, - 1, + 44, 3 ), property: Identifier( position: ( 18, - 8, + 73, 5 ), symbol: "maybe" @@ -515,20 +515,20 @@ Program( object: Identifier( position: ( 18, - 1, + 81, 6 ), symbol: "string" ), position: ( 18, - 1, + 81, 6 ), property: NumericLiteral( position: ( 18, - 3, + 83, 1 ), value: 1.0 @@ -540,20 +540,20 @@ Program( object: Identifier( position: ( 18, - 1, + 92, 6 ), symbol: "string" ), position: ( 18, - 1, + 92, 6 ), property: NumericLiteral( position: ( 18, - 3, + 94, 1 ), value: 6.0 @@ -563,14 +563,14 @@ Program( caller: Identifier( position: ( 18, - 1, + 6, 5 ), symbol: "print" ), position: ( 18, - 1, + 6, 5 ) ), @@ -582,20 +582,20 @@ Program( object: Identifier( position: ( 20, - 3, + 10, 3 ), symbol: "lst" ), position: ( 20, - 3, + 10, 3 ), property: Identifier( position: ( 20, - 5, + 14, 3 ), symbol: "num" @@ -607,20 +607,20 @@ Program( object: Identifier( position: ( 20, - 1, + 23, 6 ), symbol: "string" ), position: ( 20, - 1, + 23, 6 ), property: Identifier( position: ( 20, - 3, + 27, 3 ), symbol: "num" @@ -632,21 +632,21 @@ Program( object: Identifier( position: ( 20, - 1, + 36, 6 ), symbol: "string" ), position: ( 20, - 1, + 36, 6 ), property: BinaryExpression( left: Identifier( position: ( 20, - 3, + 40, 3 ), symbol: "num" @@ -654,13 +654,13 @@ Program( operator: "+", position: ( 20, - 3, + 40, 3 ), right: NumericLiteral( position: ( 20, - 1, + 44, 1 ), value: 7.0 @@ -671,14 +671,14 @@ Program( caller: Identifier( position: ( 20, - 1, + 6, 5 ), symbol: "print" ), position: ( 20, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/indexing/test.info b/eryx/tests/test/indexing/test.info index 37f475b..95f23d1 100644 --- a/eryx/tests/test/indexing/test.info +++ b/eryx/tests/test/indexing/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: indexing Description: \ No newline at end of file diff --git a/eryx/tests/test/loop_break_continue/loop_break_continue.eryx.ast b/eryx/tests/test/loop_break_continue/loop_break_continue.eryx.ast index aa48517..588f51f 100644 --- a/eryx/tests/test/loop_break_continue/loop_break_continue.eryx.ast +++ b/eryx/tests/test/loop_break_continue/loop_break_continue.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 5, 1 ), symbol: "x" ), position: ( 1, - 1, + 3, 3 ), value: NumericLiteral( position: ( 1, - 1, + 9, 1 ), value: 0.0 @@ -31,7 +31,7 @@ Program( assigne: Identifier( position: ( 3, - 1, + 6, 1 ), symbol: "x" @@ -39,14 +39,14 @@ Program( operator: None, position: ( 3, - 1, + 6, 1 ), value: BinaryExpression( left: Identifier( position: ( 3, - 1, + 10, 1 ), symbol: "x" @@ -54,13 +54,13 @@ Program( operator: "+", position: ( 3, - 1, + 10, 1 ), right: NumericLiteral( position: ( 3, - 1, + 14, 1 ), value: 1.0 @@ -74,7 +74,7 @@ Program( left: Identifier( position: ( 5, - 2, + 10, 1 ), symbol: "x" @@ -82,13 +82,13 @@ Program( operator: "%", position: ( 5, - 2, + 10, 1 ), right: NumericLiteral( position: ( 5, - 1, + 14, 1 ), value: 2.0 @@ -97,13 +97,13 @@ Program( operator: "==", position: ( 5, - 2, + 10, 1 ), right: NumericLiteral( position: ( 5, - 1, + 19, 1 ), value: 0.0 @@ -113,14 +113,14 @@ Program( ], position: ( 5, - 1, + 7, 2 ), then: [ ContinueLiteral( position: ( 6, - 1, + 17, 8 ) ) @@ -132,7 +132,7 @@ Program( left: Identifier( position: ( 9, - 2, + 10, 1 ), symbol: "x" @@ -140,13 +140,13 @@ Program( operator: ">", position: ( 9, - 2, + 10, 1 ), right: NumericLiteral( position: ( 9, - 1, + 15, 2 ), value: 10.0 @@ -156,14 +156,14 @@ Program( ], position: ( 9, - 1, + 7, 2 ), then: [ BreakLiteral( position: ( 10, - 1, + 14, 5 ) ) @@ -175,7 +175,7 @@ Program( Identifier( position: ( 13, - 3, + 12, 1 ), symbol: "x" @@ -184,21 +184,21 @@ Program( caller: Identifier( position: ( 13, - 1, + 10, 5 ), symbol: "print" ), position: ( 13, - 1, + 10, 5 ) ) ], position: ( 2, - 1, + 5, 4 ) ) diff --git a/eryx/tests/test/loop_break_continue/test.info b/eryx/tests/test/loop_break_continue/test.info index e6da083..9fcbd40 100644 --- a/eryx/tests/test/loop_break_continue/test.info +++ b/eryx/tests/test/loop_break_continue/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: loop_break_continue Description: \ No newline at end of file diff --git a/eryx/tests/test/member_expressions/member_expressions.eryx.ast b/eryx/tests/test/member_expressions/member_expressions.eryx.ast index 5285327..447022d 100644 --- a/eryx/tests/test/member_expressions/member_expressions.eryx.ast +++ b/eryx/tests/test/member_expressions/member_expressions.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 9, 3 ), symbol: "obj" ), position: ( 1, - 1, + 5, 5 ), value: ObjectLiteral( position: ( 1, - 1, + 13, 1 ), properties: [ @@ -26,13 +26,13 @@ Program( key: "nested", position: ( 8, - 1, + 2, 1 ), value: ObjectLiteral( position: ( 2, - 1, + 14, 1 ), properties: [ @@ -40,13 +40,13 @@ Program( key: "nested_val", position: ( 3, - 2, + 25, 1 ), value: NumericLiteral( position: ( 3, - 1, + 24, 3 ), value: 100.0 @@ -57,13 +57,13 @@ Program( key: "nest_squared", position: ( 7, - 1, + 6, 1 ), value: ObjectLiteral( position: ( 4, - 1, + 24, 1 ), properties: [ @@ -71,13 +71,13 @@ Program( key: "maybe", position: ( 6, - 1, + 10, 1 ), value: StringLiteral( position: ( 5, - 1, + 27, 7 ), value: "works" @@ -98,20 +98,20 @@ Program( identifier: Identifier( position: ( 10, - 1, + 8, 3 ), symbol: "key" ), position: ( 10, - 1, + 4, 3 ), value: StringLiteral( position: ( 10, - 1, + 19, 8 ), value: "nested" @@ -125,20 +125,20 @@ Program( object: Identifier( position: ( 12, - 3, + 10, 3 ), symbol: "obj" ), position: ( 12, - 3, + 10, 3 ), property: Identifier( position: ( 12, - 5, + 17, 6 ), symbol: "nested" @@ -150,20 +150,20 @@ Program( object: Identifier( position: ( 12, - 1, + 22, 3 ), symbol: "obj" ), position: ( 12, - 1, + 22, 3 ), property: Identifier( position: ( 12, - 3, + 26, 3 ), symbol: "key" @@ -179,20 +179,20 @@ Program( object: Identifier( position: ( 12, - 1, + 32, 3 ), symbol: "obj" ), position: ( 12, - 1, + 32, 3 ), property: Identifier( position: ( 12, - 3, + 39, 6 ), symbol: "nested" @@ -200,13 +200,13 @@ Program( ), position: ( 12, - 1, + 32, 3 ), property: Identifier( position: ( 12, - 5, + 52, 12 ), symbol: "nest_squared" @@ -214,13 +214,13 @@ Program( ), position: ( 12, - 1, + 32, 3 ), property: Identifier( position: ( 12, - 7, + 58, 5 ), symbol: "maybe" @@ -236,20 +236,20 @@ Program( object: Identifier( position: ( 12, - 1, + 63, 3 ), symbol: "obj" ), position: ( 12, - 1, + 63, 3 ), property: StringLiteral( position: ( 12, - 3, + 72, 8 ), value: "nested" @@ -257,13 +257,13 @@ Program( ), position: ( 12, - 1, + 63, 3 ), property: Identifier( position: ( 12, - 6, + 86, 12 ), symbol: "nest_squared" @@ -271,13 +271,13 @@ Program( ), position: ( 12, - 1, + 63, 3 ), property: Identifier( position: ( 12, - 8, + 92, 5 ), symbol: "maybe" @@ -293,20 +293,20 @@ Program( object: Identifier( position: ( 12, - 1, + 97, 3 ), symbol: "obj" ), position: ( 12, - 1, + 97, 3 ), property: Identifier( position: ( 12, - 3, + 104, 6 ), symbol: "nested" @@ -314,13 +314,13 @@ Program( ), position: ( 12, - 1, + 97, 3 ), property: StringLiteral( position: ( 12, - 5, + 119, 14 ), value: "nest_squared" @@ -328,13 +328,13 @@ Program( ), position: ( 12, - 1, + 97, 3 ), property: Identifier( position: ( 12, - 8, + 126, 5 ), symbol: "maybe" @@ -344,14 +344,14 @@ Program( caller: Identifier( position: ( 12, - 1, + 6, 5 ), symbol: "print" ), position: ( 12, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/member_expressions/test.info b/eryx/tests/test/member_expressions/test.info index 9bfff30..5d81b1f 100644 --- a/eryx/tests/test/member_expressions/test.info +++ b/eryx/tests/test/member_expressions/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: member_expressions Description: All kinds of member expressions with and without nesting \ No newline at end of file diff --git a/eryx/tests/test/operators_arithmetic/operators_arithmetic.eryx.ast b/eryx/tests/test/operators_arithmetic/operators_arithmetic.eryx.ast index 54ffd8b..0986dd8 100644 --- a/eryx/tests/test/operators_arithmetic/operators_arithmetic.eryx.ast +++ b/eryx/tests/test/operators_arithmetic/operators_arithmetic.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 5, 1 ), symbol: "x" ), position: ( 1, - 1, + 3, 3 ), value: NumericLiteral( position: ( 1, - 1, + 11, 3 ), value: 100.0 @@ -29,7 +29,7 @@ Program( assigne: Identifier( position: ( 3, - 1, + 2, 1 ), symbol: "x" @@ -37,14 +37,14 @@ Program( operator: None, position: ( 3, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 3, - 1, + 6, 1 ), symbol: "x" @@ -52,13 +52,13 @@ Program( operator: "+", position: ( 3, - 1, + 6, 1 ), right: Identifier( position: ( 3, - 1, + 10, 1 ), symbol: "x" @@ -71,7 +71,7 @@ Program( Identifier( position: ( 4, - 3, + 8, 1 ), symbol: "x" @@ -80,14 +80,14 @@ Program( caller: Identifier( position: ( 4, - 1, + 6, 5 ), symbol: "print" ), position: ( 4, - 1, + 6, 5 ) ), @@ -96,7 +96,7 @@ Program( assigne: Identifier( position: ( 5, - 1, + 2, 1 ), symbol: "x" @@ -104,14 +104,14 @@ Program( operator: None, position: ( 5, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 5, - 1, + 6, 1 ), symbol: "x" @@ -119,13 +119,13 @@ Program( operator: "-", position: ( 5, - 1, + 6, 1 ), right: NumericLiteral( position: ( 5, - 1, + 10, 1 ), value: 5.0 @@ -138,7 +138,7 @@ Program( Identifier( position: ( 6, - 3, + 8, 1 ), symbol: "x" @@ -147,14 +147,14 @@ Program( caller: Identifier( position: ( 6, - 1, + 6, 5 ), symbol: "print" ), position: ( 6, - 1, + 6, 5 ) ), @@ -163,7 +163,7 @@ Program( assigne: Identifier( position: ( 7, - 1, + 2, 1 ), symbol: "x" @@ -171,14 +171,14 @@ Program( operator: None, position: ( 7, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 7, - 1, + 6, 1 ), symbol: "x" @@ -186,13 +186,13 @@ Program( operator: "/", position: ( 7, - 1, + 6, 1 ), right: NumericLiteral( position: ( 7, - 1, + 10, 1 ), value: 2.0 @@ -205,7 +205,7 @@ Program( Identifier( position: ( 8, - 3, + 8, 1 ), symbol: "x" @@ -214,14 +214,14 @@ Program( caller: Identifier( position: ( 8, - 1, + 6, 5 ), symbol: "print" ), position: ( 8, - 1, + 6, 5 ) ), @@ -230,7 +230,7 @@ Program( assigne: Identifier( position: ( 9, - 1, + 2, 1 ), symbol: "x" @@ -238,14 +238,14 @@ Program( operator: None, position: ( 9, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 9, - 1, + 6, 1 ), symbol: "x" @@ -253,13 +253,13 @@ Program( operator: "*", position: ( 9, - 1, + 6, 1 ), right: Identifier( position: ( 9, - 1, + 10, 1 ), symbol: "x" @@ -272,7 +272,7 @@ Program( Identifier( position: ( 10, - 3, + 8, 1 ), symbol: "x" @@ -281,14 +281,14 @@ Program( caller: Identifier( position: ( 10, - 1, + 6, 5 ), symbol: "print" ), position: ( 10, - 1, + 6, 5 ) ), @@ -297,7 +297,7 @@ Program( assigne: Identifier( position: ( 11, - 1, + 2, 1 ), symbol: "x" @@ -305,14 +305,14 @@ Program( operator: None, position: ( 11, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 11, - 1, + 6, 1 ), symbol: "x" @@ -320,13 +320,13 @@ Program( operator: "**", position: ( 11, - 1, + 6, 1 ), right: NumericLiteral( position: ( 11, - 1, + 11, 1 ), value: 2.0 @@ -339,7 +339,7 @@ Program( Identifier( position: ( 12, - 3, + 8, 1 ), symbol: "x" @@ -348,14 +348,14 @@ Program( caller: Identifier( position: ( 12, - 1, + 6, 5 ), symbol: "print" ), position: ( 12, - 1, + 6, 5 ) ), @@ -364,7 +364,7 @@ Program( assigne: Identifier( position: ( 13, - 1, + 2, 1 ), symbol: "x" @@ -372,14 +372,14 @@ Program( operator: None, position: ( 13, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 13, - 1, + 6, 1 ), symbol: "x" @@ -387,13 +387,13 @@ Program( operator: "**", position: ( 13, - 1, + 6, 1 ), right: NumericLiteral( position: ( 13, - 1, + 13, 3 ), value: 0.5 @@ -406,7 +406,7 @@ Program( Identifier( position: ( 14, - 3, + 8, 1 ), symbol: "x" @@ -415,14 +415,14 @@ Program( caller: Identifier( position: ( 14, - 1, + 6, 5 ), symbol: "print" ), position: ( 14, - 1, + 6, 5 ) ), @@ -431,7 +431,7 @@ Program( assigne: Identifier( position: ( 15, - 1, + 2, 1 ), symbol: "x" @@ -439,14 +439,14 @@ Program( operator: None, position: ( 15, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 15, - 1, + 6, 1 ), symbol: "x" @@ -454,13 +454,13 @@ Program( operator: "%", position: ( 15, - 1, + 6, 1 ), right: NumericLiteral( position: ( 15, - 1, + 11, 2 ), value: 45.0 @@ -473,7 +473,7 @@ Program( Identifier( position: ( 16, - 3, + 8, 1 ), symbol: "x" @@ -482,14 +482,14 @@ Program( caller: Identifier( position: ( 16, - 1, + 6, 5 ), symbol: "print" ), position: ( 16, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/operators_arithmetic/test.info b/eryx/tests/test/operators_arithmetic/test.info index 2c66ed2..4b82532 100644 --- a/eryx/tests/test/operators_arithmetic/test.info +++ b/eryx/tests/test/operators_arithmetic/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: operators_arithmetic Description: \ No newline at end of file diff --git a/eryx/tests/test/operators_bitwise/operators_bitwise.eryx.ast b/eryx/tests/test/operators_bitwise/operators_bitwise.eryx.ast index 00a8602..cdd858a 100644 --- a/eryx/tests/test/operators_bitwise/operators_bitwise.eryx.ast +++ b/eryx/tests/test/operators_bitwise/operators_bitwise.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 5, 1 ), symbol: "x" ), position: ( 1, - 1, + 3, 3 ), value: NumericLiteral( position: ( 1, - 1, + 15, 7 ), value: 1060080.0 @@ -29,7 +29,7 @@ Program( assigne: Identifier( position: ( 3, - 1, + 2, 1 ), symbol: "x" @@ -37,14 +37,14 @@ Program( operator: None, position: ( 3, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 3, - 1, + 6, 1 ), symbol: "x" @@ -52,13 +52,13 @@ Program( operator: "^", position: ( 3, - 1, + 6, 1 ), right: NumericLiteral( position: ( 3, - 1, + 12, 3 ), value: 140.0 @@ -71,7 +71,7 @@ Program( Identifier( position: ( 4, - 3, + 8, 1 ), symbol: "x" @@ -80,14 +80,14 @@ Program( caller: Identifier( position: ( 4, - 1, + 6, 5 ), symbol: "print" ), position: ( 4, - 1, + 6, 5 ) ), @@ -96,7 +96,7 @@ Program( assigne: Identifier( position: ( 5, - 1, + 2, 1 ), symbol: "x" @@ -104,14 +104,14 @@ Program( operator: None, position: ( 5, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 5, - 1, + 6, 1 ), symbol: "x" @@ -119,13 +119,13 @@ Program( operator: "&", position: ( 5, - 1, + 6, 1 ), right: NumericLiteral( position: ( 5, - 1, + 15, 6 ), value: 290845.0 @@ -138,7 +138,7 @@ Program( Identifier( position: ( 6, - 3, + 8, 1 ), symbol: "x" @@ -147,14 +147,14 @@ Program( caller: Identifier( position: ( 6, - 1, + 6, 5 ), symbol: "print" ), position: ( 6, - 1, + 6, 5 ) ), @@ -163,7 +163,7 @@ Program( assigne: Identifier( position: ( 7, - 1, + 2, 1 ), symbol: "x" @@ -171,14 +171,14 @@ Program( operator: None, position: ( 7, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 7, - 1, + 6, 1 ), symbol: "x" @@ -186,13 +186,13 @@ Program( operator: "|", position: ( 7, - 1, + 6, 1 ), right: NumericLiteral( position: ( 7, - 1, + 13, 4 ), value: 4484.0 @@ -205,7 +205,7 @@ Program( Identifier( position: ( 8, - 3, + 8, 1 ), symbol: "x" @@ -214,14 +214,14 @@ Program( caller: Identifier( position: ( 8, - 1, + 6, 5 ), symbol: "print" ), position: ( 8, - 1, + 6, 5 ) ), @@ -230,7 +230,7 @@ Program( assigne: Identifier( position: ( 9, - 1, + 2, 1 ), symbol: "x" @@ -238,14 +238,14 @@ Program( operator: None, position: ( 9, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 9, - 1, + 6, 1 ), symbol: "x" @@ -253,13 +253,13 @@ Program( operator: ">>", position: ( 9, - 1, + 6, 1 ), right: NumericLiteral( position: ( 9, - 1, + 11, 1 ), value: 2.0 @@ -272,7 +272,7 @@ Program( Identifier( position: ( 10, - 3, + 8, 1 ), symbol: "x" @@ -281,14 +281,14 @@ Program( caller: Identifier( position: ( 10, - 1, + 6, 5 ), symbol: "print" ), position: ( 10, - 1, + 6, 5 ) ), @@ -297,7 +297,7 @@ Program( assigne: Identifier( position: ( 11, - 1, + 2, 1 ), symbol: "x" @@ -305,14 +305,14 @@ Program( operator: None, position: ( 11, - 1, + 2, 1 ), value: BinaryExpression( left: Identifier( position: ( 11, - 1, + 6, 1 ), symbol: "x" @@ -320,13 +320,13 @@ Program( operator: "<<", position: ( 11, - 1, + 6, 1 ), right: NumericLiteral( position: ( 11, - 1, + 11, 1 ), value: 2.0 @@ -339,7 +339,7 @@ Program( Identifier( position: ( 12, - 3, + 8, 1 ), symbol: "x" @@ -348,14 +348,14 @@ Program( caller: Identifier( position: ( 12, - 1, + 6, 5 ), symbol: "print" ), position: ( 12, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/operators_bitwise/test.info b/eryx/tests/test/operators_bitwise/test.info index 46d8e78..dcf9fce 100644 --- a/eryx/tests/test/operators_bitwise/test.info +++ b/eryx/tests/test/operators_bitwise/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: operators_bitwise Description: \ No newline at end of file diff --git a/eryx/tests/test/operators_comparison/operators_comparison.eryx.ast b/eryx/tests/test/operators_comparison/operators_comparison.eryx.ast index ce7beaa..b12ea46 100644 --- a/eryx/tests/test/operators_comparison/operators_comparison.eryx.ast +++ b/eryx/tests/test/operators_comparison/operators_comparison.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 5, 1 ), symbol: "x" ), position: ( 1, - 1, + 3, 3 ), value: NumericLiteral( position: ( 1, - 1, + 11, 3 ), value: 100.0 @@ -30,20 +30,20 @@ Program( identifier: Identifier( position: ( 2, - 1, + 6, 1 ), symbol: "y" ), position: ( 2, - 1, + 4, 3 ), value: NumericLiteral( position: ( 2, - 1, + 13, 4 ), value: 6430.0 @@ -56,7 +56,7 @@ Program( left: Identifier( position: ( 4, - 3, + 8, 1 ), symbol: "x" @@ -64,13 +64,13 @@ Program( operator: "==", position: ( 4, - 3, + 8, 1 ), right: Identifier( position: ( 4, - 1, + 13, 1 ), symbol: "y" @@ -80,14 +80,14 @@ Program( caller: Identifier( position: ( 4, - 1, + 6, 5 ), symbol: "print" ), position: ( 4, - 1, + 6, 5 ) ), @@ -98,7 +98,7 @@ Program( left: Identifier( position: ( 5, - 3, + 8, 1 ), symbol: "x" @@ -106,13 +106,13 @@ Program( operator: "!=", position: ( 5, - 3, + 8, 1 ), right: Identifier( position: ( 5, - 1, + 13, 1 ), symbol: "y" @@ -122,14 +122,14 @@ Program( caller: Identifier( position: ( 5, - 1, + 6, 5 ), symbol: "print" ), position: ( 5, - 1, + 6, 5 ) ), @@ -140,7 +140,7 @@ Program( left: Identifier( position: ( 6, - 3, + 8, 1 ), symbol: "x" @@ -148,13 +148,13 @@ Program( operator: ">", position: ( 6, - 3, + 8, 1 ), right: Identifier( position: ( 6, - 1, + 12, 1 ), symbol: "y" @@ -164,14 +164,14 @@ Program( caller: Identifier( position: ( 6, - 1, + 6, 5 ), symbol: "print" ), position: ( 6, - 1, + 6, 5 ) ), @@ -182,7 +182,7 @@ Program( left: Identifier( position: ( 7, - 3, + 8, 1 ), symbol: "x" @@ -190,13 +190,13 @@ Program( operator: "<", position: ( 7, - 3, + 8, 1 ), right: Identifier( position: ( 7, - 1, + 12, 1 ), symbol: "y" @@ -206,14 +206,14 @@ Program( caller: Identifier( position: ( 7, - 1, + 6, 5 ), symbol: "print" ), position: ( 7, - 1, + 6, 5 ) ), @@ -224,7 +224,7 @@ Program( left: Identifier( position: ( 8, - 3, + 8, 1 ), symbol: "x" @@ -232,13 +232,13 @@ Program( operator: ">=", position: ( 8, - 3, + 8, 1 ), right: Identifier( position: ( 8, - 1, + 13, 1 ), symbol: "y" @@ -248,14 +248,14 @@ Program( caller: Identifier( position: ( 8, - 1, + 6, 5 ), symbol: "print" ), position: ( 8, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/operators_comparison/test.info b/eryx/tests/test/operators_comparison/test.info index 4d50c66..1ed6c9b 100644 --- a/eryx/tests/test/operators_comparison/test.info +++ b/eryx/tests/test/operators_comparison/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: operators_comparison Description: \ No newline at end of file diff --git a/eryx/tests/test/operators_logical/operators_logical.eryx.ast b/eryx/tests/test/operators_logical/operators_logical.eryx.ast index 732df1f..b90ba1d 100644 --- a/eryx/tests/test/operators_logical/operators_logical.eryx.ast +++ b/eryx/tests/test/operators_logical/operators_logical.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 5, 1 ), symbol: "x" ), position: ( 1, - 1, + 3, 3 ), value: Identifier( position: ( 1, - 1, + 12, 4 ), symbol: "true" @@ -30,20 +30,20 @@ Program( identifier: Identifier( position: ( 2, - 1, + 6, 1 ), symbol: "y" ), position: ( 2, - 1, + 4, 3 ), value: Identifier( position: ( 2, - 1, + 14, 5 ), symbol: "false" @@ -56,7 +56,7 @@ Program( left: Identifier( position: ( 4, - 3, + 8, 1 ), symbol: "x" @@ -64,13 +64,13 @@ Program( operator: "&&", position: ( 4, - 3, + 8, 1 ), right: Identifier( position: ( 4, - 1, + 13, 1 ), symbol: "y" @@ -80,14 +80,14 @@ Program( caller: Identifier( position: ( 4, - 1, + 6, 5 ), symbol: "print" ), position: ( 4, - 1, + 6, 5 ) ), @@ -98,7 +98,7 @@ Program( left: Identifier( position: ( 5, - 3, + 8, 1 ), symbol: "x" @@ -106,13 +106,13 @@ Program( operator: "||", position: ( 5, - 3, + 8, 1 ), right: Identifier( position: ( 5, - 1, + 13, 1 ), symbol: "y" @@ -122,14 +122,14 @@ Program( caller: Identifier( position: ( 5, - 1, + 6, 5 ), symbol: "print" ), position: ( 5, - 1, + 6, 5 ) ), @@ -141,7 +141,7 @@ Program( left: Identifier( position: ( 6, - 3, + 8, 1 ), symbol: "x" @@ -149,13 +149,13 @@ Program( operator: "||", position: ( 6, - 3, + 8, 1 ), right: Identifier( position: ( 6, - 1, + 13, 1 ), symbol: "y" @@ -164,13 +164,13 @@ Program( operator: "&&", position: ( 6, - 3, + 8, 1 ), right: Identifier( position: ( 6, - 1, + 18, 1 ), symbol: "x" @@ -180,14 +180,14 @@ Program( caller: Identifier( position: ( 6, - 1, + 6, 5 ), symbol: "print" ), position: ( 6, - 1, + 6, 5 ) ), @@ -199,7 +199,7 @@ Program( left: Identifier( position: ( 7, - 3, + 8, 1 ), symbol: "x" @@ -207,13 +207,13 @@ Program( operator: "&&", position: ( 7, - 3, + 8, 1 ), right: Identifier( position: ( 7, - 1, + 13, 1 ), symbol: "y" @@ -222,13 +222,13 @@ Program( operator: "||", position: ( 7, - 3, + 8, 1 ), right: Identifier( position: ( 7, - 1, + 18, 1 ), symbol: "x" @@ -238,14 +238,14 @@ Program( caller: Identifier( position: ( 7, - 1, + 6, 5 ), symbol: "print" ), position: ( 7, - 1, + 6, 5 ) ), @@ -258,7 +258,7 @@ Program( left: Identifier( position: ( 8, - 3, + 8, 1 ), symbol: "x" @@ -266,13 +266,13 @@ Program( operator: "&&", position: ( 8, - 3, + 8, 1 ), right: Identifier( position: ( 8, - 1, + 13, 1 ), symbol: "y" @@ -281,13 +281,13 @@ Program( operator: "||", position: ( 8, - 3, + 8, 1 ), right: Identifier( position: ( 8, - 1, + 18, 1 ), symbol: "x" @@ -296,13 +296,13 @@ Program( operator: "&&", position: ( 8, - 3, + 8, 1 ), right: Identifier( position: ( 8, - 1, + 23, 1 ), symbol: "y" @@ -312,14 +312,14 @@ Program( caller: Identifier( position: ( 8, - 1, + 6, 5 ), symbol: "print" ), position: ( 8, - 1, + 6, 5 ) ), @@ -333,7 +333,7 @@ Program( left: Identifier( position: ( 9, - 3, + 8, 1 ), symbol: "x" @@ -341,13 +341,13 @@ Program( operator: "&&", position: ( 9, - 3, + 8, 1 ), right: Identifier( position: ( 9, - 1, + 13, 1 ), symbol: "y" @@ -356,13 +356,13 @@ Program( operator: "||", position: ( 9, - 3, + 8, 1 ), right: Identifier( position: ( 9, - 1, + 18, 1 ), symbol: "x" @@ -371,13 +371,13 @@ Program( operator: "&&", position: ( 9, - 3, + 8, 1 ), right: Identifier( position: ( 9, - 1, + 23, 1 ), symbol: "y" @@ -386,13 +386,13 @@ Program( operator: "&&", position: ( 9, - 3, + 8, 1 ), right: Identifier( position: ( 9, - 1, + 28, 1 ), symbol: "x" @@ -402,14 +402,14 @@ Program( caller: Identifier( position: ( 9, - 1, + 6, 5 ), symbol: "print" ), position: ( 9, - 1, + 6, 5 ) ), @@ -420,7 +420,7 @@ Program( left: Identifier( position: ( 10, - 3, + 8, 1 ), symbol: "x" @@ -428,13 +428,13 @@ Program( operator: "&&", position: ( 10, - 3, + 8, 1 ), right: Identifier( position: ( 10, - 1, + 13, 1 ), symbol: "x" @@ -444,14 +444,14 @@ Program( caller: Identifier( position: ( 10, - 1, + 6, 5 ), symbol: "print" ), position: ( 10, - 1, + 6, 5 ) ), @@ -462,7 +462,7 @@ Program( left: Identifier( position: ( 11, - 3, + 8, 1 ), symbol: "y" @@ -470,13 +470,13 @@ Program( operator: "&&", position: ( 11, - 3, + 8, 1 ), right: Identifier( position: ( 11, - 1, + 13, 1 ), symbol: "y" @@ -486,14 +486,14 @@ Program( caller: Identifier( position: ( 11, - 1, + 6, 5 ), symbol: "print" ), position: ( 11, - 1, + 6, 5 ) ), @@ -504,7 +504,7 @@ Program( left: Identifier( position: ( 12, - 3, + 8, 1 ), symbol: "x" @@ -512,13 +512,13 @@ Program( operator: "||", position: ( 12, - 3, + 8, 1 ), right: Identifier( position: ( 12, - 1, + 13, 1 ), symbol: "x" @@ -528,14 +528,14 @@ Program( caller: Identifier( position: ( 12, - 1, + 6, 5 ), symbol: "print" ), position: ( 12, - 1, + 6, 5 ) ), @@ -546,7 +546,7 @@ Program( left: Identifier( position: ( 13, - 3, + 8, 1 ), symbol: "y" @@ -554,13 +554,13 @@ Program( operator: "||", position: ( 13, - 3, + 8, 1 ), right: Identifier( position: ( 13, - 1, + 13, 1 ), symbol: "y" @@ -570,14 +570,14 @@ Program( caller: Identifier( position: ( 13, - 1, + 6, 5 ), symbol: "print" ), position: ( 13, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/operators_logical/test.info b/eryx/tests/test/operators_logical/test.info index 99eb847..0f808a9 100644 --- a/eryx/tests/test/operators_logical/test.info +++ b/eryx/tests/test/operators_logical/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: operators_logical Description: \ No newline at end of file diff --git a/eryx/tests/test/variable_declaration/test.info b/eryx/tests/test/variable_declaration/test.info index aaa18ae..0b93c32 100644 --- a/eryx/tests/test/variable_declaration/test.info +++ b/eryx/tests/test/variable_declaration/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: variable_declaration Description: Variable declarations for all data types \ No newline at end of file diff --git a/eryx/tests/test/variable_declaration/variable_declaration.eryx.ast b/eryx/tests/test/variable_declaration/variable_declaration.eryx.ast index 6d97200..b3297e4 100644 --- a/eryx/tests/test/variable_declaration/variable_declaration.eryx.ast +++ b/eryx/tests/test/variable_declaration/variable_declaration.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 11, 7 ), symbol: "integer" ), position: ( 1, - 1, + 3, 3 ), value: NumericLiteral( position: ( 1, - 1, + 16, 2 ), value: 10.0 @@ -30,20 +30,20 @@ Program( identifier: Identifier( position: ( 3, - 1, + 10, 3 ), symbol: "flt" ), position: ( 3, - 1, + 6, 5 ), value: NumericLiteral( position: ( 3, - 1, + 17, 4 ), value: 15.5 @@ -55,20 +55,20 @@ Program( identifier: Identifier( position: ( 5, - 1, + 12, 7 ), symbol: "neg_num" ), position: ( 5, - 1, + 4, 3 ), value: NumericLiteral( position: ( 5, - 1, + 19, 5 ), value: -100.0 @@ -80,20 +80,20 @@ Program( identifier: Identifier( position: ( 7, - 1, + 11, 6 ), symbol: "string" ), position: ( 7, - 1, + 4, 3 ), value: StringLiteral( position: ( 7, - 1, + 19, 5 ), value: "abc" @@ -105,20 +105,20 @@ Program( identifier: Identifier( position: ( 9, - 1, + 10, 3 ), symbol: "obj" ), position: ( 9, - 1, + 6, 5 ), value: ObjectLiteral( position: ( 9, - 1, + 14, 1 ), properties: [ @@ -126,7 +126,7 @@ Program( key: "integer", position: ( 11, - 1, + 8, 3 ), value: None @@ -136,7 +136,7 @@ Program( key: "flt", position: ( 12, - 1, + 12, 7 ), value: None @@ -146,7 +146,7 @@ Program( key: "neg_num", position: ( 13, - 1, + 12, 7 ), value: None @@ -156,13 +156,13 @@ Program( key: "abc_str", position: ( 13, - 2, + 21, 1 ), value: Identifier( position: ( 13, - 1, + 20, 6 ), symbol: "string" @@ -173,13 +173,13 @@ Program( key: "nested", position: ( 20, - 1, + 2, 1 ), value: ObjectLiteral( position: ( 14, - 1, + 14, 1 ), properties: [ @@ -187,13 +187,13 @@ Program( key: "nested_val", position: ( 15, - 2, + 25, 1 ), value: NumericLiteral( position: ( 15, - 1, + 24, 3 ), value: 100.0 @@ -204,13 +204,13 @@ Program( key: "nest_squared", position: ( 19, - 1, + 6, 1 ), value: ObjectLiteral( position: ( 16, - 1, + 24, 1 ), properties: [ @@ -218,13 +218,13 @@ Program( key: "maybe", position: ( 18, - 1, + 10, 1 ), value: StringLiteral( position: ( 17, - 1, + 27, 7 ), value: "works" @@ -245,14 +245,14 @@ Program( identifier: Identifier( position: ( 22, - 1, + 8, 3 ), symbol: "arr" ), position: ( 22, - 1, + 4, 3 ), value: ArrayLiteral( @@ -260,7 +260,7 @@ Program( NumericLiteral( position: ( 22, - 2, + 13, 1 ), value: 1.0 @@ -269,7 +269,7 @@ Program( NumericLiteral( position: ( 22, - 1, + 17, 3 ), value: -2.0 @@ -278,7 +278,7 @@ Program( NumericLiteral( position: ( 22, - 1, + 23, 4 ), value: 3.14 @@ -287,7 +287,7 @@ Program( StringLiteral( position: ( 22, - 1, + 28, 3 ), value: "4" @@ -296,7 +296,7 @@ Program( ObjectLiteral( position: ( 22, - 1, + 31, 1 ), properties: [ @@ -304,13 +304,13 @@ Program( key: "n", position: ( 22, - 5, + 35, 1 ), value: NumericLiteral( position: ( 22, - 4, + 34, 1 ), value: 5.0 @@ -324,7 +324,7 @@ Program( NumericLiteral( position: ( 22, - 2, + 39, 1 ), value: 6.0 @@ -333,7 +333,7 @@ Program( NumericLiteral( position: ( 22, - 1, + 42, 1 ), value: 7.0 @@ -341,7 +341,7 @@ Program( ], position: ( 22, - 1, + 38, 1 ) ), @@ -349,7 +349,7 @@ Program( Identifier( position: ( 22, - 1, + 48, 3 ), symbol: "obj" @@ -357,7 +357,7 @@ Program( ], position: ( 22, - 1, + 12, 1 ) ) @@ -368,7 +368,7 @@ Program( Identifier( position: ( 24, - 3, + 10, 3 ), symbol: "arr" @@ -377,14 +377,14 @@ Program( caller: Identifier( position: ( 24, - 1, + 6, 5 ), symbol: "print" ), position: ( 24, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/variable_deletion/test.info b/eryx/tests/test/variable_deletion/test.info index b802111..34f8c13 100644 --- a/eryx/tests/test/variable_deletion/test.info +++ b/eryx/tests/test/variable_deletion/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: variable_deletion Description: \ No newline at end of file diff --git a/eryx/tests/test/variable_deletion/variable_deletion.eryx.ast b/eryx/tests/test/variable_deletion/variable_deletion.eryx.ast index c072d09..f2c5232 100644 --- a/eryx/tests/test/variable_deletion/variable_deletion.eryx.ast +++ b/eryx/tests/test/variable_deletion/variable_deletion.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 7, 1 ), symbol: "x" ), position: ( 1, - 1, + 5, 5 ), value: NumericLiteral( position: ( 1, - 1, + 12, 2 ), value: 10.0 @@ -29,14 +29,14 @@ Program( identifier: Identifier( position: ( 3, - 1, + 6, 1 ), symbol: "x" ), position: ( 3, - 1, + 4, 3 ) ), @@ -46,20 +46,20 @@ Program( identifier: Identifier( position: ( 5, - 1, + 8, 1 ), symbol: "x" ), position: ( 5, - 1, + 6, 5 ), value: NumericLiteral( position: ( 5, - 1, + 12, 1 ), value: 1.0 @@ -71,7 +71,7 @@ Program( Identifier( position: ( 7, - 3, + 8, 1 ), symbol: "x" @@ -80,14 +80,14 @@ Program( caller: Identifier( position: ( 7, - 1, + 6, 5 ), symbol: "print" ), position: ( 7, - 1, + 6, 5 ) ) diff --git a/eryx/tests/test/while_loops/test.info b/eryx/tests/test/while_loops/test.info index ec180c7..9cac35e 100644 --- a/eryx/tests/test/while_loops/test.info +++ b/eryx/tests/test/while_loops/test.info @@ -1,3 +1,3 @@ -Version: 0.4.1 +Version: 0.5.0 Name: while_loops Description: \ No newline at end of file diff --git a/eryx/tests/test/while_loops/while_loops.eryx.ast b/eryx/tests/test/while_loops/while_loops.eryx.ast index bffd4a7..cdae369 100644 --- a/eryx/tests/test/while_loops/while_loops.eryx.ast +++ b/eryx/tests/test/while_loops/while_loops.eryx.ast @@ -5,20 +5,20 @@ Program( identifier: Identifier( position: ( 1, - 1, + 5, 1 ), symbol: "x" ), position: ( 1, - 1, + 3, 3 ), value: NumericLiteral( position: ( 1, - 1, + 9, 1 ), value: 0.0 @@ -31,7 +31,7 @@ Program( assigne: Identifier( position: ( 3, - 1, + 6, 1 ), symbol: "x" @@ -39,14 +39,14 @@ Program( operator: None, position: ( 3, - 1, + 6, 1 ), value: BinaryExpression( left: Identifier( position: ( 3, - 1, + 10, 1 ), symbol: "x" @@ -54,13 +54,13 @@ Program( operator: "+", position: ( 3, - 1, + 10, 1 ), right: NumericLiteral( position: ( 3, - 1, + 14, 1 ), value: 1.0 @@ -74,7 +74,7 @@ Program( left: Identifier( position: ( 5, - 2, + 10, 1 ), symbol: "x" @@ -82,13 +82,13 @@ Program( operator: "%", position: ( 5, - 2, + 10, 1 ), right: NumericLiteral( position: ( 5, - 1, + 14, 1 ), value: 2.0 @@ -97,13 +97,13 @@ Program( operator: "==", position: ( 5, - 2, + 10, 1 ), right: NumericLiteral( position: ( 5, - 1, + 19, 1 ), value: 0.0 @@ -113,14 +113,14 @@ Program( ], position: ( 5, - 1, + 7, 2 ), then: [ ContinueLiteral( position: ( 6, - 1, + 17, 8 ) ) @@ -132,7 +132,7 @@ Program( Identifier( position: ( 9, - 3, + 12, 1 ), symbol: "x" @@ -141,14 +141,14 @@ Program( caller: Identifier( position: ( 9, - 1, + 10, 5 ), symbol: "print" ), position: ( 9, - 1, + 10, 5 ) ) @@ -157,7 +157,7 @@ Program( left: Identifier( position: ( 2, - 2, + 9, 1 ), symbol: "x" @@ -165,13 +165,13 @@ Program( operator: "<", position: ( 2, - 2, + 9, 1 ), right: NumericLiteral( position: ( 2, - 1, + 14, 2 ), value: 10.0 @@ -179,7 +179,7 @@ Program( ), position: ( 2, - 1, + 6, 5 ) )