Skip to content

Commit 2065381

Browse files
committed
if working well but have a litte bug when is something like 1 <= 1 or 1 >= 1, but only with the same numbers
1 parent d79544e commit 2065381

File tree

77 files changed

+378
-369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+378
-369
lines changed

.idea/misc.xml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MonkeyParser.g4

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ expressionStatement : expression (PYCOMMA | )
3131
expression : additionExpression comparison #expressionAST;
3232

3333
//-------------------------------------------------------------------------------------------------------------------
34-
comparison : ((LT|GT|LE|GE|EQUAL) additionExpression)* #comparisonAST;
34+
comparison : ((LT|GT|LE|GE|EQUAL|NOT_EQUAL) additionExpression)* #comparisonAST;
3535

3636
//-------------------------------------------------------------------------------------------------------------------
3737
additionExpression : multiplicationExpression additionFactor #additionExpressionAST;

MonkeyScanner.g4

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ COLON : ':';
2323
LE : '<=';
2424
GE : '>=';
2525
EQUAL : '==';
26+
NOT_EQUAL : '!=';
2627
GT : '>';
2728
LT : '<';
2829
ASSIGN : '=';
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

out/production/Proyecto Compi/generated/MonkeyParser.interp

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ null
1212
'<='
1313
'>='
1414
'=='
15+
'!='
1516
'>'
1617
'<'
1718
'='
@@ -53,6 +54,7 @@ COLON
5354
LE
5455
GE
5556
EQUAL
57+
NOT_EQUAL
5658
GT
5759
LT
5860
ASSIGN
@@ -109,4 +111,4 @@ blockStatement
109111

110112

111113
atn:
112-
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 40, 221, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 3, 2, 7, 2, 54, 10, 2, 12, 2, 14, 2, 57, 11, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 64, 10, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 71, 10, 4, 3, 5, 3, 5, 3, 5, 5, 5, 76, 10, 5, 3, 6, 3, 6, 3, 6, 5, 6, 81, 10, 6, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 7, 8, 88, 10, 8, 12, 8, 14, 8, 91, 11, 8, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 7, 10, 98, 10, 10, 12, 10, 14, 10, 101, 11, 10, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 7, 12, 108, 10, 12, 12, 12, 14, 12, 111, 11, 12, 3, 13, 3, 13, 3, 13, 3, 13, 5, 13, 117, 10, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 5, 16, 146, 10, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 5, 17, 153, 10, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 7, 20, 168, 10, 20, 12, 20, 14, 20, 171, 11, 20, 3, 21, 3, 21, 3, 21, 3, 21, 7, 21, 177, 10, 21, 12, 21, 14, 21, 180, 11, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 7, 23, 191, 10, 23, 12, 23, 14, 23, 194, 11, 23, 3, 23, 5, 23, 197, 10, 23, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 5, 25, 210, 10, 25, 3, 26, 3, 26, 7, 26, 214, 10, 26, 12, 26, 14, 26, 217, 11, 26, 3, 26, 3, 26, 3, 26, 2, 2, 27, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 2, 5, 3, 2, 12, 16, 3, 2, 18, 19, 3, 2, 20, 21, 2, 227, 2, 55, 3, 2, 2, 2, 4, 63, 3, 2, 2, 2, 6, 65, 3, 2, 2, 2, 8, 72, 3, 2, 2, 2, 10, 77, 3, 2, 2, 2, 12, 82, 3, 2, 2, 2, 14, 89, 3, 2, 2, 2, 16, 92, 3, 2, 2, 2, 18, 99, 3, 2, 2, 2, 20, 102, 3, 2, 2, 2, 22, 109, 3, 2, 2, 2, 24, 112, 3, 2, 2, 2, 26, 118, 3, 2, 2, 2, 28, 122, 3, 2, 2, 2, 30, 145, 3, 2, 2, 2, 32, 152, 3, 2, 2, 2, 34, 154, 3, 2, 2, 2, 36, 158, 3, 2, 2, 2, 38, 164, 3, 2, 2, 2, 40, 172, 3, 2, 2, 2, 42, 183, 3, 2, 2, 2, 44, 196, 3, 2, 2, 2, 46, 198, 3, 2, 2, 2, 48, 203, 3, 2, 2, 2, 50, 211, 3, 2, 2, 2, 52, 54, 5, 4, 3, 2, 53, 52, 3, 2, 2, 2, 54, 57, 3, 2, 2, 2, 55, 53, 3, 2, 2, 2, 55, 56, 3, 2, 2, 2, 56, 3, 3, 2, 2, 2, 57, 55, 3, 2, 2, 2, 58, 59, 7, 22, 2, 2, 59, 64, 5, 6, 4, 2, 60, 61, 7, 23, 2, 2, 61, 64, 5, 8, 5, 2, 62, 64, 5, 10, 6, 2, 63, 58, 3, 2, 2, 2, 63, 60, 3, 2, 2, 2, 63, 62, 3, 2, 2, 2, 64, 5, 3, 2, 2, 2, 65, 66, 7, 37, 2, 2, 66, 67, 7, 17, 2, 2, 67, 70, 5, 12, 7, 2, 68, 71, 7, 9, 2, 2, 69, 71, 3, 2, 2, 2, 70, 68, 3, 2, 2, 2, 70, 69, 3, 2, 2, 2, 71, 7, 3, 2, 2, 2, 72, 75, 5, 12, 7, 2, 73, 76, 7, 9, 2, 2, 74, 76, 3, 2, 2, 2, 75, 73, 3, 2, 2, 2, 75, 74, 3, 2, 2, 2, 76, 9, 3, 2, 2, 2, 77, 80, 5, 12, 7, 2, 78, 81, 7, 9, 2, 2, 79, 81, 3, 2, 2, 2, 80, 78, 3, 2, 2, 2, 80, 79, 3, 2, 2, 2, 81, 11, 3, 2, 2, 2, 82, 83, 5, 16, 9, 2, 83, 84, 5, 14, 8, 2, 84, 13, 3, 2, 2, 2, 85, 86, 9, 2, 2, 2, 86, 88, 5, 16, 9, 2, 87, 85, 3, 2, 2, 2, 88, 91, 3, 2, 2, 2, 89, 87, 3, 2, 2, 2, 89, 90, 3, 2, 2, 2, 90, 15, 3, 2, 2, 2, 91, 89, 3, 2, 2, 2, 92, 93, 5, 20, 11, 2, 93, 94, 5, 18, 10, 2, 94, 17, 3, 2, 2, 2, 95, 96, 9, 3, 2, 2, 96, 98, 5, 20, 11, 2, 97, 95, 3, 2, 2, 2, 98, 101, 3, 2, 2, 2, 99, 97, 3, 2, 2, 2, 99, 100, 3, 2, 2, 2, 100, 19, 3, 2, 2, 2, 101, 99, 3, 2, 2, 2, 102, 103, 5, 24, 13, 2, 103, 104, 5, 22, 12, 2, 104, 21, 3, 2, 2, 2, 105, 106, 9, 4, 2, 2, 106, 108, 5, 24, 13, 2, 107, 105, 3, 2, 2, 2, 108, 111, 3, 2, 2, 2, 109, 107, 3, 2, 2, 2, 109, 110, 3, 2, 2, 2, 110, 23, 3, 2, 2, 2, 111, 109, 3, 2, 2, 2, 112, 116, 5, 30, 16, 2, 113, 117, 5, 26, 14, 2, 114, 117, 5, 28, 15, 2, 115, 117, 3, 2, 2, 2, 116, 113, 3, 2, 2, 2, 116, 114, 3, 2, 2, 2, 116, 115, 3, 2, 2, 2, 117, 25, 3, 2, 2, 2, 118, 119, 7, 7, 2, 2, 119, 120, 5, 12, 7, 2, 120, 121, 7, 8, 2, 2, 121, 27, 3, 2, 2, 2, 122, 123, 7, 3, 2, 2, 123, 124, 5, 44, 23, 2, 124, 125, 7, 4, 2, 2, 125, 29, 3, 2, 2, 2, 126, 146, 7, 35, 2, 2, 127, 146, 7, 36, 2, 2, 128, 146, 7, 37, 2, 2, 129, 146, 7, 33, 2, 2, 130, 146, 7, 34, 2, 2, 131, 132, 7, 3, 2, 2, 132, 133, 5, 12, 7, 2, 133, 134, 7, 4, 2, 2, 134, 146, 3, 2, 2, 2, 135, 146, 5, 34, 18, 2, 136, 137, 5, 32, 17, 2, 137, 138, 7, 3, 2, 2, 138, 139, 5, 44, 23, 2, 139, 140, 7, 4, 2, 2, 140, 146, 3, 2, 2, 2, 141, 146, 5, 36, 19, 2, 142, 146, 5, 40, 21, 2, 143, 146, 5, 46, 24, 2, 144, 146, 5, 48, 25, 2, 145, 126, 3, 2, 2, 2, 145, 127, 3, 2, 2, 2, 145, 128, 3, 2, 2, 2, 145, 129, 3, 2, 2, 2, 145, 130, 3, 2, 2, 2, 145, 131, 3, 2, 2, 2, 145, 135, 3, 2, 2, 2, 145, 136, 3, 2, 2, 2, 145, 141, 3, 2, 2, 2, 145, 142, 3, 2, 2, 2, 145, 143, 3, 2, 2, 2, 145, 144, 3, 2, 2, 2, 146, 31, 3, 2, 2, 2, 147, 153, 7, 28, 2, 2, 148, 153, 7, 29, 2, 2, 149, 153, 7, 30, 2, 2, 150, 153, 7, 31, 2, 2, 151, 153, 7, 32, 2, 2, 152, 147, 3, 2, 2, 2, 152, 148, 3, 2, 2, 2, 152, 149, 3, 2, 2, 2, 152, 150, 3, 2, 2, 2, 152, 151, 3, 2, 2, 2, 153, 33, 3, 2, 2, 2, 154, 155, 7, 7, 2, 2, 155, 156, 5, 44, 23, 2, 156, 157, 7, 8, 2, 2, 157, 35, 3, 2, 2, 2, 158, 159, 7, 24, 2, 2, 159, 160, 7, 3, 2, 2, 160, 161, 5, 38, 20, 2, 161, 162, 7, 4, 2, 2, 162, 163, 5, 50, 26, 2, 163, 37, 3, 2, 2, 2, 164, 169, 7, 37, 2, 2, 165, 166, 7, 10, 2, 2, 166, 168, 7, 37, 2, 2, 167, 165, 3, 2, 2, 2, 168, 171, 3, 2, 2, 2, 169, 167, 3, 2, 2, 2, 169, 170, 3, 2, 2, 2, 170, 39, 3, 2, 2, 2, 171, 169, 3, 2, 2, 2, 172, 173, 7, 5, 2, 2, 173, 178, 5, 42, 22, 2, 174, 175, 7, 10, 2, 2, 175, 177, 5, 42, 22, 2, 176, 174, 3, 2, 2, 2, 177, 180, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 178, 179, 3, 2, 2, 2, 179, 181, 3, 2, 2, 2, 180, 178, 3, 2, 2, 2, 181, 182, 7, 6, 2, 2, 182, 41, 3, 2, 2, 2, 183, 184, 5, 12, 7, 2, 184, 185, 7, 11, 2, 2, 185, 186, 5, 12, 7, 2, 186, 43, 3, 2, 2, 2, 187, 192, 5, 12, 7, 2, 188, 189, 7, 10, 2, 2, 189, 191, 5, 12, 7, 2, 190, 188, 3, 2, 2, 2, 191, 194, 3, 2, 2, 2, 192, 190, 3, 2, 2, 2, 192, 193, 3, 2, 2, 2, 193, 197, 3, 2, 2, 2, 194, 192, 3, 2, 2, 2, 195, 197, 3, 2, 2, 2, 196, 187, 3, 2, 2, 2, 196, 195, 3, 2, 2, 2, 197, 45, 3, 2, 2, 2, 198, 199, 7, 27, 2, 2, 199, 200, 7, 3, 2, 2, 200, 201, 5, 12, 7, 2, 201, 202, 7, 4, 2, 2, 202, 47, 3, 2, 2, 2, 203, 204, 7, 25, 2, 2, 204, 205, 5, 12, 7, 2, 205, 209, 5, 50, 26, 2, 206, 207, 7, 26, 2, 2, 207, 210, 5, 50, 26, 2, 208, 210, 3, 2, 2, 2, 209, 206, 3, 2, 2, 2, 209, 208, 3, 2, 2, 2, 210, 49, 3, 2, 2, 2, 211, 215, 7, 5, 2, 2, 212, 214, 5, 4, 3, 2, 213, 212, 3, 2, 2, 2, 214, 217, 3, 2, 2, 2, 215, 213, 3, 2, 2, 2, 215, 216, 3, 2, 2, 2, 216, 218, 3, 2, 2, 2, 217, 215, 3, 2, 2, 2, 218, 219, 7, 6, 2, 2, 219, 51, 3, 2, 2, 2, 19, 55, 63, 70, 75, 80, 89, 99, 109, 116, 145, 152, 169, 178, 192, 196, 209, 215]
114+
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 41, 221, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 3, 2, 7, 2, 54, 10, 2, 12, 2, 14, 2, 57, 11, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 3, 64, 10, 3, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 5, 4, 71, 10, 4, 3, 5, 3, 5, 3, 5, 5, 5, 76, 10, 5, 3, 6, 3, 6, 3, 6, 5, 6, 81, 10, 6, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 7, 8, 88, 10, 8, 12, 8, 14, 8, 91, 11, 8, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 7, 10, 98, 10, 10, 12, 10, 14, 10, 101, 11, 10, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 7, 12, 108, 10, 12, 12, 12, 14, 12, 111, 11, 12, 3, 13, 3, 13, 3, 13, 3, 13, 5, 13, 117, 10, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 5, 16, 146, 10, 16, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 5, 17, 153, 10, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 7, 20, 168, 10, 20, 12, 20, 14, 20, 171, 11, 20, 3, 21, 3, 21, 3, 21, 3, 21, 7, 21, 177, 10, 21, 12, 21, 14, 21, 180, 11, 21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 22, 3, 22, 3, 23, 3, 23, 3, 23, 7, 23, 191, 10, 23, 12, 23, 14, 23, 194, 11, 23, 3, 23, 5, 23, 197, 10, 23, 3, 24, 3, 24, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 3, 25, 5, 25, 210, 10, 25, 3, 26, 3, 26, 7, 26, 214, 10, 26, 12, 26, 14, 26, 217, 11, 26, 3, 26, 3, 26, 3, 26, 2, 2, 27, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 2, 5, 3, 2, 12, 17, 3, 2, 19, 20, 3, 2, 21, 22, 2, 227, 2, 55, 3, 2, 2, 2, 4, 63, 3, 2, 2, 2, 6, 65, 3, 2, 2, 2, 8, 72, 3, 2, 2, 2, 10, 77, 3, 2, 2, 2, 12, 82, 3, 2, 2, 2, 14, 89, 3, 2, 2, 2, 16, 92, 3, 2, 2, 2, 18, 99, 3, 2, 2, 2, 20, 102, 3, 2, 2, 2, 22, 109, 3, 2, 2, 2, 24, 112, 3, 2, 2, 2, 26, 118, 3, 2, 2, 2, 28, 122, 3, 2, 2, 2, 30, 145, 3, 2, 2, 2, 32, 152, 3, 2, 2, 2, 34, 154, 3, 2, 2, 2, 36, 158, 3, 2, 2, 2, 38, 164, 3, 2, 2, 2, 40, 172, 3, 2, 2, 2, 42, 183, 3, 2, 2, 2, 44, 196, 3, 2, 2, 2, 46, 198, 3, 2, 2, 2, 48, 203, 3, 2, 2, 2, 50, 211, 3, 2, 2, 2, 52, 54, 5, 4, 3, 2, 53, 52, 3, 2, 2, 2, 54, 57, 3, 2, 2, 2, 55, 53, 3, 2, 2, 2, 55, 56, 3, 2, 2, 2, 56, 3, 3, 2, 2, 2, 57, 55, 3, 2, 2, 2, 58, 59, 7, 23, 2, 2, 59, 64, 5, 6, 4, 2, 60, 61, 7, 24, 2, 2, 61, 64, 5, 8, 5, 2, 62, 64, 5, 10, 6, 2, 63, 58, 3, 2, 2, 2, 63, 60, 3, 2, 2, 2, 63, 62, 3, 2, 2, 2, 64, 5, 3, 2, 2, 2, 65, 66, 7, 38, 2, 2, 66, 67, 7, 18, 2, 2, 67, 70, 5, 12, 7, 2, 68, 71, 7, 9, 2, 2, 69, 71, 3, 2, 2, 2, 70, 68, 3, 2, 2, 2, 70, 69, 3, 2, 2, 2, 71, 7, 3, 2, 2, 2, 72, 75, 5, 12, 7, 2, 73, 76, 7, 9, 2, 2, 74, 76, 3, 2, 2, 2, 75, 73, 3, 2, 2, 2, 75, 74, 3, 2, 2, 2, 76, 9, 3, 2, 2, 2, 77, 80, 5, 12, 7, 2, 78, 81, 7, 9, 2, 2, 79, 81, 3, 2, 2, 2, 80, 78, 3, 2, 2, 2, 80, 79, 3, 2, 2, 2, 81, 11, 3, 2, 2, 2, 82, 83, 5, 16, 9, 2, 83, 84, 5, 14, 8, 2, 84, 13, 3, 2, 2, 2, 85, 86, 9, 2, 2, 2, 86, 88, 5, 16, 9, 2, 87, 85, 3, 2, 2, 2, 88, 91, 3, 2, 2, 2, 89, 87, 3, 2, 2, 2, 89, 90, 3, 2, 2, 2, 90, 15, 3, 2, 2, 2, 91, 89, 3, 2, 2, 2, 92, 93, 5, 20, 11, 2, 93, 94, 5, 18, 10, 2, 94, 17, 3, 2, 2, 2, 95, 96, 9, 3, 2, 2, 96, 98, 5, 20, 11, 2, 97, 95, 3, 2, 2, 2, 98, 101, 3, 2, 2, 2, 99, 97, 3, 2, 2, 2, 99, 100, 3, 2, 2, 2, 100, 19, 3, 2, 2, 2, 101, 99, 3, 2, 2, 2, 102, 103, 5, 24, 13, 2, 103, 104, 5, 22, 12, 2, 104, 21, 3, 2, 2, 2, 105, 106, 9, 4, 2, 2, 106, 108, 5, 24, 13, 2, 107, 105, 3, 2, 2, 2, 108, 111, 3, 2, 2, 2, 109, 107, 3, 2, 2, 2, 109, 110, 3, 2, 2, 2, 110, 23, 3, 2, 2, 2, 111, 109, 3, 2, 2, 2, 112, 116, 5, 30, 16, 2, 113, 117, 5, 26, 14, 2, 114, 117, 5, 28, 15, 2, 115, 117, 3, 2, 2, 2, 116, 113, 3, 2, 2, 2, 116, 114, 3, 2, 2, 2, 116, 115, 3, 2, 2, 2, 117, 25, 3, 2, 2, 2, 118, 119, 7, 7, 2, 2, 119, 120, 5, 12, 7, 2, 120, 121, 7, 8, 2, 2, 121, 27, 3, 2, 2, 2, 122, 123, 7, 3, 2, 2, 123, 124, 5, 44, 23, 2, 124, 125, 7, 4, 2, 2, 125, 29, 3, 2, 2, 2, 126, 146, 7, 36, 2, 2, 127, 146, 7, 37, 2, 2, 128, 146, 7, 38, 2, 2, 129, 146, 7, 34, 2, 2, 130, 146, 7, 35, 2, 2, 131, 132, 7, 3, 2, 2, 132, 133, 5, 12, 7, 2, 133, 134, 7, 4, 2, 2, 134, 146, 3, 2, 2, 2, 135, 146, 5, 34, 18, 2, 136, 137, 5, 32, 17, 2, 137, 138, 7, 3, 2, 2, 138, 139, 5, 44, 23, 2, 139, 140, 7, 4, 2, 2, 140, 146, 3, 2, 2, 2, 141, 146, 5, 36, 19, 2, 142, 146, 5, 40, 21, 2, 143, 146, 5, 46, 24, 2, 144, 146, 5, 48, 25, 2, 145, 126, 3, 2, 2, 2, 145, 127, 3, 2, 2, 2, 145, 128, 3, 2, 2, 2, 145, 129, 3, 2, 2, 2, 145, 130, 3, 2, 2, 2, 145, 131, 3, 2, 2, 2, 145, 135, 3, 2, 2, 2, 145, 136, 3, 2, 2, 2, 145, 141, 3, 2, 2, 2, 145, 142, 3, 2, 2, 2, 145, 143, 3, 2, 2, 2, 145, 144, 3, 2, 2, 2, 146, 31, 3, 2, 2, 2, 147, 153, 7, 29, 2, 2, 148, 153, 7, 30, 2, 2, 149, 153, 7, 31, 2, 2, 150, 153, 7, 32, 2, 2, 151, 153, 7, 33, 2, 2, 152, 147, 3, 2, 2, 2, 152, 148, 3, 2, 2, 2, 152, 149, 3, 2, 2, 2, 152, 150, 3, 2, 2, 2, 152, 151, 3, 2, 2, 2, 153, 33, 3, 2, 2, 2, 154, 155, 7, 7, 2, 2, 155, 156, 5, 44, 23, 2, 156, 157, 7, 8, 2, 2, 157, 35, 3, 2, 2, 2, 158, 159, 7, 25, 2, 2, 159, 160, 7, 3, 2, 2, 160, 161, 5, 38, 20, 2, 161, 162, 7, 4, 2, 2, 162, 163, 5, 50, 26, 2, 163, 37, 3, 2, 2, 2, 164, 169, 7, 38, 2, 2, 165, 166, 7, 10, 2, 2, 166, 168, 7, 38, 2, 2, 167, 165, 3, 2, 2, 2, 168, 171, 3, 2, 2, 2, 169, 167, 3, 2, 2, 2, 169, 170, 3, 2, 2, 2, 170, 39, 3, 2, 2, 2, 171, 169, 3, 2, 2, 2, 172, 173, 7, 5, 2, 2, 173, 178, 5, 42, 22, 2, 174, 175, 7, 10, 2, 2, 175, 177, 5, 42, 22, 2, 176, 174, 3, 2, 2, 2, 177, 180, 3, 2, 2, 2, 178, 176, 3, 2, 2, 2, 178, 179, 3, 2, 2, 2, 179, 181, 3, 2, 2, 2, 180, 178, 3, 2, 2, 2, 181, 182, 7, 6, 2, 2, 182, 41, 3, 2, 2, 2, 183, 184, 5, 12, 7, 2, 184, 185, 7, 11, 2, 2, 185, 186, 5, 12, 7, 2, 186, 43, 3, 2, 2, 2, 187, 192, 5, 12, 7, 2, 188, 189, 7, 10, 2, 2, 189, 191, 5, 12, 7, 2, 190, 188, 3, 2, 2, 2, 191, 194, 3, 2, 2, 2, 192, 190, 3, 2, 2, 2, 192, 193, 3, 2, 2, 2, 193, 197, 3, 2, 2, 2, 194, 192, 3, 2, 2, 2, 195, 197, 3, 2, 2, 2, 196, 187, 3, 2, 2, 2, 196, 195, 3, 2, 2, 2, 197, 45, 3, 2, 2, 2, 198, 199, 7, 28, 2, 2, 199, 200, 7, 3, 2, 2, 200, 201, 5, 12, 7, 2, 201, 202, 7, 4, 2, 2, 202, 47, 3, 2, 2, 2, 203, 204, 7, 26, 2, 2, 204, 205, 5, 12, 7, 2, 205, 209, 5, 50, 26, 2, 206, 207, 7, 27, 2, 2, 207, 210, 5, 50, 26, 2, 208, 210, 3, 2, 2, 2, 209, 206, 3, 2, 2, 2, 209, 208, 3, 2, 2, 2, 210, 49, 3, 2, 2, 2, 211, 215, 7, 5, 2, 2, 212, 214, 5, 4, 3, 2, 213, 212, 3, 2, 2, 2, 214, 217, 3, 2, 2, 2, 215, 213, 3, 2, 2, 2, 215, 216, 3, 2, 2, 2, 216, 218, 3, 2, 2, 2, 217, 215, 3, 2, 2, 2, 218, 219, 7, 6, 2, 2, 219, 51, 3, 2, 2, 2, 19, 55, 63, 70, 75, 80, 89, 99, 109, 116, 145, 152, 169, 178, 192, 196, 209, 215]

out/production/Proyecto Compi/generated/MonkeyParser.tokens

+48-46
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,33 @@ COLON=9
1010
LE=10
1111
GE=11
1212
EQUAL=12
13-
GT=13
14-
LT=14
15-
ASSIGN=15
16-
ADD=16
17-
SUB=17
18-
MUL=18
19-
DIV=19
20-
LET=20
21-
RETURN=21
22-
FN=22
23-
IF=23
24-
ELSE=24
25-
PUTS=25
26-
LEN=26
27-
FIRST=27
28-
LAST=28
29-
REST=29
30-
PUSH=30
31-
TRUE=31
32-
FALSE=32
33-
INTEGER=33
34-
STRING=34
35-
IDENT=35
36-
WS=36
37-
SINGLE_COMMENT=37
38-
BLOCK_COMMENT=38
13+
NOT_EQUAL=13
14+
GT=14
15+
LT=15
16+
ASSIGN=16
17+
ADD=17
18+
SUB=18
19+
MUL=19
20+
DIV=20
21+
LET=21
22+
RETURN=22
23+
FN=23
24+
IF=24
25+
ELSE=25
26+
PUTS=26
27+
LEN=27
28+
FIRST=28
29+
LAST=29
30+
REST=30
31+
PUSH=31
32+
TRUE=32
33+
FALSE=33
34+
INTEGER=34
35+
STRING=35
36+
IDENT=36
37+
WS=37
38+
SINGLE_COMMENT=38
39+
BLOCK_COMMENT=39
3940
'('=1
4041
')'=2
4142
'{'=3
@@ -48,23 +49,24 @@ BLOCK_COMMENT=38
4849
'<='=10
4950
'>='=11
5051
'=='=12
51-
'>'=13
52-
'<'=14
53-
'='=15
54-
'+'=16
55-
'-'=17
56-
'*'=18
57-
'/'=19
58-
'let'=20
59-
'return'=21
60-
'fn'=22
61-
'if'=23
62-
'else'=24
63-
'puts'=25
64-
'len'=26
65-
'first'=27
66-
'last'=28
67-
'rest'=29
68-
'push'=30
69-
'true'=31
70-
'false'=32
52+
'!='=13
53+
'>'=14
54+
'<'=15
55+
'='=16
56+
'+'=17
57+
'-'=18
58+
'*'=19
59+
'/'=20
60+
'let'=21
61+
'return'=22
62+
'fn'=23
63+
'if'=24
64+
'else'=25
65+
'puts'=26
66+
'len'=27
67+
'first'=28
68+
'last'=29
69+
'rest'=30
70+
'push'=31
71+
'true'=32
72+
'false'=33
Binary file not shown.

0 commit comments

Comments
 (0)