logcompkabbani's Issues
Problemas na v3.0.2
GabrielKabbani/LogCompKabbani
Mas algo saiu no stderror(que não deveria):
teste1.asm:109: error: symbol EXOT_9" undefined teste1.asm:110: error: label
EXIT_9" changed during code generation [-w+error=label-redef-late]
teste1.asm:111: error: label if_13" changed during code generation [-w+error=label-redef-late] teste1.asm:121: error: label
ELSE_13" changed during code generation [-w+error=label-redef-late]
teste1.asm:124: error: label EXIT_13" changed during code generation [-w+error=label-redef-late] teste1.asm:125: error: label
LOOP_18" changed during code generation [-w+error=label-redef-late]
teste1.asm:142: error: label `EXIT_18" changed during code generation [-w+error=label-redef-late]
Problemas na v2.4
GabrielKabbani/LogCompKabbani
teste1: falha
input do teste:
fn soma(x: i32, y: i32) -> i32
{
return x + y;
}
fn Main()
{
// v2.3 testing
var x_1: i32;
x_1 = 2;
x_1 = soma(1, x_1);
x_1 = Read();
if ((x_1 > 1) && !(x_1 < 1)) {
x_1 = 3;
}
else {
{
x_1 = (-20+30)*4*3/40;;;;; // teste de comentario
}
}
Print(x_1);
x_1 = Read();
if ((x_1 > 1) && !(x_1 < 1))
x_1 = 3;
else
x_1 = (-20+30)*12/40;;;;;
Print(x_1);
while ((x_1 > 1) || (x_1 == 1)) {x_1 = x_1 - 1;Print(x_1);}}
stdin do teste:
3
0
output esperado:
3
3
2
1
0
output recebido:
NAME 3: x_1
NAME 1: x
NAME 1: y
NAME 2: x_1
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 860, in
main()
File "main.py", line 857, in main
Parser.run(file.read())
File "main.py", line 841, in run
output.evaluate(tempo_st)
File "main.py", line 25, in evaluate
statement.evaluate(st)
File "main.py", line 220, in evaluate
return block.evaluate(st_current)
File "main.py", line 25, in evaluate
statement.evaluate(st)
File "main.py", line 264, in evaluate
st.setter(self.children[0], self.children[1].evaluate(st))
File "main.py", line 194, in setter
if y[1] == self.symbol_table[x][1]:
TypeError: "NoneType" object is not subscriptable
teste2: falha
input do teste:
fn Main()
{
// Single var
var x_1: i32;
x_1 = 1;
Print(x_1);
}
output esperado:
1
output recebido:
NAME 3: x_1
1
teste3: falha
input do teste:
fn Main()
{
// All bool and int operations
var y, z : i32;
y = 2;
z = (y == 2);
Print(y+z);
Print(y-z);
Print(y*z);
Print(y/z);
Print(y == z);
Print(y < z);
Print(y > z);
}
output esperado:
3
1
2
2
0
0
1
output recebido:
NAME 3: y
NAME 3: z
3
1
2
2
0
0
1
teste4: falha
input do teste:
fn Main()
{
// All str operations
var a, b : String;
var x_1, y, z : i32;
x_1 = 1; y = 1; z = 2;
a = "abc";
b = "def";
Print(a.b);
Print(a.x_1);
Print(x_1.a);
Print(y.z);
Print(a.(x_1==1));
Print(a == a);
Print(a < b);
Print(a > b);
}
output esperado:
abcdef
abc1
1abc
12
abc1
1
1
0
output recebido:
NAME 3: a
NAME 3: b
NAME 3: x_1
NAME 3: y
NAME 3: z
abcdef
abc1
1abc
12
abc1
1
1
0
Problemas na v1.2.1
GabrielKabbani/LogCompKabbani
teste1: falha
input do teste:
1+1
output esperado:
2
output recebido:
NEW: 1+1
2
teste2: falha
input do teste:
21+21
output esperado:
42
output recebido:
NEW: 21+21
42
teste3: falha
input do teste:
1-1
output esperado:
0
output recebido:
NEW: 1-1
0
teste4: falha
input do teste:
50-150
output esperado:
-100
output recebido:
NEW: 50-150
-100
teste8: falha
input do teste:
100 + 100
output esperado:
200
output recebido:
NEW: 100 + 100
200
teste9: falha
input do teste:
100 + 100 - 100+1
output esperado:
101
output recebido:
NEW: 100 + 100 - 100+1
101
teste10: falha
input do teste:
100 + 100 - 100+1 -101 - 900
output esperado:
-900
output recebido:
NEW: 100 + 100 - 100+1 -101 - 900
-900
teste11: falha
input do teste:
1*1
output esperado:
1
output recebido:
NEW: 1*1
1
teste12: falha
input do teste:
1/1
output esperado:
1
output recebido:
NEW: 1/1
1
teste13: falha
input do teste:
32*985
output esperado:
31520
output recebido:
NEW: 32*985
31520
teste14: falha
input do teste:
3168/99
output esperado:
32
output recebido:
NEW: 3168/99
32
teste15: falha
input do teste:
2+5*4
output esperado:
22
output recebido:
NEW: 2+5*4
22
teste16: falha
input do teste:
2*4/2
output esperado:
4
output recebido:
NEW: 2*4/2
4
teste17: falha
input do teste:
0/1
output esperado:
0
output recebido:
NEW: 0/1
0
teste18: falha
input do teste:
8 * 9 / 2
output esperado:
36
output recebido:
NEW: 8 * 9 / 2
36
teste19: falha
input do teste:
4//2
output esperado:
4
output recebido:
NEW: 4
4
teste21: falha
input do teste:
8//4**2
output esperado:
8
output recebido:
NEW: 8
8
teste22: falha
input do teste:
1/2
output esperado:
0
output recebido:
NEW: 1/2
0
teste23: falha
input do teste:
2 // A /* 1 */ 2
output esperado:
2
output recebido:
NEW: 2
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 209, in
main()
File "main.py", line 207, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 180, in run
output = Parser.parse_expression(tokens)
File "main.py", line 114, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 130, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 168, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste24: falha
input do teste:
1 //* A */ 1 /* A */
output esperado:
1
output recebido:
NEW: 1
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 209, in
main()
File "main.py", line 207, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 180, in run
output = Parser.parse_expression(tokens)
File "main.py", line 114, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 130, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 168, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste25: falha
input do teste:
1 + 3//* 2 */ 3
output esperado:
4
output recebido:
NEW: 1 + 3
4
teste27: falha
input do teste:
1 //* A
output esperado:
1
output recebido:
NEW: 1
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 209, in
main()
File "main.py", line 207, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 180, in run
output = Parser.parse_expression(tokens)
File "main.py", line 114, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 130, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 168, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste29: falha
input do teste:
(1+1)*3
output esperado:
6
output recebido:
NEW: (1+1)*3
6
teste30: falha
input do teste:
(1+1)*10
output esperado:
20
output recebido:
NEW: (1+1)*10
20
teste31: falha
input do teste:
(1+1)*(2+2)
output esperado:
8
output recebido:
NEW: (1+1)*(2+2)
8
teste32: falha
input do teste:
(10*(9*9))
output esperado:
810
output recebido:
NEW: (10*(9*9))
810
teste33: falha
input do teste:
(((1+1)))
output esperado:
2
output recebido:
NEW: (((1+1)))
2
teste38: falha
input do teste:
-1
output esperado:
-1
output recebido:
NEW: -1
-1
teste39: falha
input do teste:
--2
output esperado:
2
output recebido:
NEW: --2
2
teste40: falha
input do teste:
- -2
output esperado:
2
output recebido:
NEW: - -2
2
teste41: falha
input do teste:
--2+40
output esperado:
42
output recebido:
NEW: --2+40
42
teste42: falha
input do teste:
40--2
output esperado:
42
output recebido:
NEW: 40--2
42
teste43: falha
input do teste:
44---2
output esperado:
42
output recebido:
NEW: 44---2
42
teste44: falha
input do teste:
40+-+-2
output esperado:
42
output recebido:
NEW: 40+-+-2
42
teste45: falha
input do teste:
40+++++++++2
output esperado:
42
output recebido:
NEW: 40+++++++++2
42
Problemas na v1.2.0
GabrielKabbani/LogCompKabbani
teste25: falha
input do teste:
1 + 3//* 2 */ 3
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 211, in
main()
File "main.py", line 209, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 180, in run
output = Parser.parse_expression(tokens)
File "main.py", line 118, in parse_expression
token.selectNext()
File "main.py", line 28, in selectNext
while self.source[self.position]==" ":
IndexError: string index out of range
Problemas na v2.2
GabrielKabbani/LogCompKabbani
teste33: falha
input do teste:
{
x = Read();
Print(x);
}
stdin do teste:
7
output esperado:
7
output recebido:
Insert value: 7
teste34: falha
input do teste:
{
x = Read();
y = Read();
Print(x+y);
}
stdin do teste:
2
8
output esperado:
10
output recebido:
Insert value: Insert value: 10
teste35: falha
input do teste:
{
Print(Read());
}
stdin do teste:
19
output esperado:
19
output recebido:
Insert value: 19
Problemas na v2.1.1
GabrielKabbani/LogCompKabbani
teste12: falha
input do teste:
{
1x = 432;
Print(1x);
}
Timeout, teste demorou mais de 10.0 segundo para rodar, assumo que entrou em um loop infinito
Problemas na v2.1.3
GabrielKabbani/LogCompKabbani
teste1: falha
input do teste:
{Print(1);}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 379, in
main()
File "main.py", line 376, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 342, in parse_block
raise Exception("Missing closing keys")
Exception: Missing closing keys
teste2: falha
input do teste:
{
// Teste
Print(1);
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 379, in
main()
File "main.py", line 376, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 342, in parse_block
raise Exception("Missing closing keys")
Exception: Missing closing keys
teste4: falha
input do teste:
{
x1 = 3;
Print(x1);
}
output esperado:
3
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 379, in
main()
File "main.py", line 376, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 342, in parse_block
raise Exception("Missing closing keys")
Exception: Missing closing keys
teste16: falha
input do teste:
{
3 = 2 + 1;
}
Timeout, teste demorou mais de 10.0 segundo para rodar, assumo que entrou em um loop infinito
Problemas na v1.1.2
GabrielKabbani/LogCompKabbani
teste20: falha
input do teste:
4//2
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 180, in
main()
File "main.py", line 178, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 153, in run
output = Parser.parse_expression(tokens)
File "main.py", line 135, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 131, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste22: falha
input do teste:
8//4**2
output esperado:
8
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 180, in
main()
File "main.py", line 178, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 153, in run
output = Parser.parse_expression(tokens)
File "main.py", line 135, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 131, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste24: falha
input do teste:
2// A // 1
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 180, in
main()
File "main.py", line 178, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 153, in run
output = Parser.parse_expression(tokens)
File "main.py", line 135, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 131, in parse_term
raise Exception("Invalid")
Exception: Invalid
Problemas na v1.1.0
GabrielKabbani/LogCompKabbani
teste10: falha
input do teste:
100 + 100 - 100+1
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
teste11: falha
input do teste:
100 + 100 - 100+1 -101 - 900
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
teste13: falha
input do teste:
1/1
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 189, in
main()
File "main.py", line 187, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 172, in run
output = Parser.parse_expression(tokens)
File "main.py", line 153, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 123, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste15: falha
input do teste:
3168/99
output esperado:
32
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 189, in
main()
File "main.py", line 187, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 172, in run
output = Parser.parse_expression(tokens)
File "main.py", line 153, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 123, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste17: falha
input do teste:
2*4/2
output esperado:
4
output recebido:
8
teste18: falha
input do teste:
0/1
output esperado:
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 189, in
main()
File "main.py", line 187, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 172, in run
output = Parser.parse_expression(tokens)
File "main.py", line 153, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 123, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste19: falha
input do teste:
8 * 9 / 2
output esperado:
36
output recebido:
72
teste20: falha
input do teste:
4//2
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 189, in
main()
File "main.py", line 187, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 172, in run
output = Parser.parse_expression(tokens)
File "main.py", line 153, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 123, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste22: falha
input do teste:
8//4**2
output esperado:
8
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 189, in
main()
File "main.py", line 187, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 172, in run
output = Parser.parse_expression(tokens)
File "main.py", line 153, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 123, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste23: falha
input do teste:
1/2
output esperado:
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 189, in
main()
File "main.py", line 187, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 172, in run
output = Parser.parse_expression(tokens)
File "main.py", line 153, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 123, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste24: falha
input do teste:
2// A // 1
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 189, in
main()
File "main.py", line 187, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 172, in run
output = Parser.parse_expression(tokens)
File "main.py", line 153, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 123, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste28: falha
input do teste:
1 // A
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 189, in
main()
File "main.py", line 187, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 172, in run
output = Parser.parse_expression(tokens)
File "main.py", line 153, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 123, in parse_term
raise Exception("Invalid")
Exception: Invalid
Problemas na v0.1.4
GabrielKabbani/LogCompKabbani
teste5: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
1 1
Problemas na v3.0
GabrielKabbani/LogCompKabbani
Mas algo saiu no stderror(que não deveria):
nasm: fatal: unable to open input file `teste1.asm"
Problemas na v0.1.2
GabrielKabbani/LogCompKabbani
teste5: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
1 1
Problemas na v3.0.1
GabrielKabbani/LogCompKabbani
Mas algo saiu no stderror(que não deveria):
teste1.asm:101: error: symbol EXIT_9" undefined teste1.asm:110: error: label
Exit_9" changed during code generation [-w+error=label-redef-late]
teste1.asm:111: error: label if_13" changed during code generation [-w+error=label-redef-late] teste1.asm:121: error: label
Else_13" changed during code generation [-w+error=label-redef-late]
teste1.asm:124: error: label Exit_13" changed during code generation [-w+error=label-redef-late] teste1.asm:125: error: label
LOOP_18" changed during code generation [-w+error=label-redef-late]
teste1.asm:142: error: label `EXIT_18" changed during code generation [-w+error=label-redef-late]
Problemas na v2.4.1
GabrielKabbani/LogCompKabbani
teste1: falha
input do teste:
fn soma(x: i32, y: i32) -> i32
{
return x + y;
}
fn Main()
{
// v2.3 testing
var x_1: i32;
x_1 = 2;
x_1 = soma(1, x_1);
x_1 = Read();
if ((x_1 > 1) && !(x_1 < 1)) {
x_1 = 3;
}
else {
{
x_1 = (-20+30)*4*3/40;;;;; // teste de comentario
}
}
Print(x_1);
x_1 = Read();
if ((x_1 > 1) && !(x_1 < 1))
x_1 = 3;
else
x_1 = (-20+30)*12/40;;;;;
Print(x_1);
while ((x_1 > 1) || (x_1 == 1)) {x_1 = x_1 - 1;Print(x_1);}}
stdin do teste:
3
0
output esperado:
3
3
2
1
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 858, in
main()
File "main.py", line 855, in main
Parser.run(file.read())
File "main.py", line 839, in run
output.evaluate(tempo_st)
File "main.py", line 25, in evaluate
statement.evaluate(st)
File "main.py", line 219, in evaluate
return block.evaluate(st_current)
File "main.py", line 25, in evaluate
statement.evaluate(st)
File "main.py", line 262, in evaluate
st.setter(self.children[0], self.children[1].evaluate(st))
File "main.py", line 193, in setter
if y[1] == self.symbol_table[x][1]:
TypeError: "NoneType" object is not subscriptable
Problemas na v2.1.2
GabrielKabbani/LogCompKabbani
teste15: falha
input do teste:
{
Print(3);
Timeout, teste demorou mais de 10.0 segundo para rodar, assumo que entrou em um loop infinito
Problemas na v2.4.2
GabrielKabbani/LogCompKabbani
teste26: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
fn Main()
{
var x: String;
x = Read();
Print(x+1);
}
stdin do teste:
2
Problemas na v2.3
GabrielKabbani/LogCompKabbani
teste1: falha
input do teste:
{
// v2.2 testing
var x_1: i32;
x_1 = Read();
if ((x_1 > 1) && !(x_1 < 1)) {
x_1 = 3;
}
else {
{
x_1 = (-20+30)*4*3/40;;;;; // teste de comentario
}
}
Print(x_1);
x_1 = Read();
if ((x_1 > 1) && !(x_1 < 1))
x_1 = 3;
else
x_1 = (-20+30)*12/40;;;;;
Print(x_1);
while ((x_1 > 1) || (x_1 == 1)) {x_1 = x_1 - 1;Print(x_1);}}
stdin do teste:
3
0
output esperado:
3
3
2
1
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 678, in
main()
File "main.py", line 675, in main
Parser.run(file.read())
File "main.py", line 659, in run
output.evaluate()
File "main.py", line 25, in evaluate
statement.evaluate()
File "main.py", line 196, in evaluate
SymbolTable.setter(self.children[0], self.children[1].evaluate())
File "main.py", line 169, in setter
if y[1] == symbol_table[x][1]:
TypeError: "int" object is not subscriptable
teste3: falha
input do teste:
{
// All bool and int operations
var y, z : i32;
y = 2;
z = (y == 2);
Print(y+z);
Print(y-z);
Print(y*z);
Print(y/z);
Print(y == z);
Print(y < z);
Print(y > z);
}
output esperado:
3
1
2
2
0
0
1
output recebido:
3
1
2
2
False
False
True
teste4: falha
input do teste:
{
// All str operations
var a, b : String;
var x_1, y, z : i32;
x_1 = 1; y = 1; z = 2;
a = "abc";
b = "def";
Print(a.b);
Print(a.x_1);
Print(x_1.a);
Print(y.z);
Print(a.(x_1==1));
Print(a == a);
Print(a < b);
Print(a > b);
}
output esperado:
abcdef
abc1
1abc
12
abc1
1
1
0
output recebido:
abcdef
abc1
1abc
12
abcTrue
1
1
0
teste33: falha
input do teste:
{
var x : String;
x = "a";
var y : i32;
y = 1;
Print(x==y);
}
output esperado:
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 678, in
main()
File "main.py", line 675, in main
Parser.run(file.read())
File "main.py", line 659, in run
output.evaluate()
File "main.py", line 25, in evaluate
statement.evaluate()
File "main.py", line 186, in evaluate
print(self.children[0].evaluate()[0]) #se der erro tira o 0
File "main.py", line 94, in evaluate
raise Exception("Invalid, operation not defined for BinOp with one string and one integer")
Exception: Invalid, operation not defined for BinOp with one string and one integer
Problemas na v1.1.1
GabrielKabbani/LogCompKabbani
teste10: falha
input do teste:
100 + 100 - 100+1
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
teste11: falha
input do teste:
100 + 100 - 100+1 -101 - 900
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
teste24: falha
input do teste:
2// A // 1
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 176, in
main()
File "main.py", line 174, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 151, in run
output = Parser.parse_expression(tokens)
File "main.py", line 132, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 128, in parse_term
raise Exception("Invalid")
Exception: Invalid
teste28: falha
input do teste:
1 // A
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 176, in
main()
File "main.py", line 174, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 151, in run
output = Parser.parse_expression(tokens)
File "main.py", line 132, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 102, in parse_term
raise Exception("Invalid")
Exception: Invalid
Problemas na v2.0
GabrielKabbani/LogCompKabbani
teste1: falha
input do teste:
1+1
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste2: falha
input do teste:
21+21
output esperado:
42
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste3: falha
input do teste:
1-1
output esperado:
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste4: falha
input do teste:
50-150
output esperado:
-100
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste8: falha
input do teste:
100 + 100
output esperado:
200
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste9: falha
input do teste:
100 + 100 - 100+1
output esperado:
101
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste10: falha
input do teste:
100 + 100 - 100+1 -101 - 900
output esperado:
-900
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste11: falha
input do teste:
1*1
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste12: falha
input do teste:
1/1
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste13: falha
input do teste:
32*985
output esperado:
31520
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste14: falha
input do teste:
3168/99
output esperado:
32
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste15: falha
input do teste:
2+5*4
output esperado:
22
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste16: falha
input do teste:
2*4/2
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste17: falha
input do teste:
0/1
output esperado:
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste18: falha
input do teste:
8 * 9 / 2
output esperado:
36
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste19: falha
input do teste:
4//2
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste21: falha
input do teste:
8//4**2
output esperado:
8
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste22: falha
input do teste:
1/2
output esperado:
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste23: falha
input do teste:
2 // A /* 1 */ 2
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste24: falha
input do teste:
1 //* A */ 1 /* A */
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste25: falha
input do teste:
1 + 3//* 2 */ 3
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste27: falha
input do teste:
1 //* A
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste29: falha
input do teste:
(1+1)*3
output esperado:
6
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste30: falha
input do teste:
(1+1)*10
output esperado:
20
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste31: falha
input do teste:
(1+1)*(2+2)
output esperado:
8
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste32: falha
input do teste:
(10*(9*9))
output esperado:
810
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste33: falha
input do teste:
(((1+1)))
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste38: falha
input do teste:
-1
output esperado:
-1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste39: falha
input do teste:
--2
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste40: falha
input do teste:
- -2
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste41: falha
input do teste:
--2+40
output esperado:
42
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste42: falha
input do teste:
40--2
output esperado:
42
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste43: falha
input do teste:
44---2
output esperado:
42
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste44: falha
input do teste:
40+-+-2
output esperado:
42
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste45: falha
input do teste:
40+++++++++2
output esperado:
42
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 227, in
main()
File "main.py", line 225, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 207, in run
output = Parser.parse_expression(tokens)
File "main.py", line 154, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 164, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 198, in parse_factor
raise Exception("Invalid")
Exception: Invalid
Problemas na v2.1
GabrielKabbani/LogCompKabbani
teste1: falha
input do teste:
{Print(1);}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 380, in
main()
File "main.py", line 377, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 348, in parse_block
token.selectNext()
File "main.py", line 201, in selectNext
raise Exception("Invalid, cannot begin with this value")
Exception: Invalid, cannot begin with this value
teste2: falha
input do teste:
{
// Teste
Print(1);
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 380, in
main()
File "main.py", line 377, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 338, in parse_block
token.selectNext()
File "main.py", line 201, in selectNext
raise Exception("Invalid, cannot begin with this value")
Exception: Invalid, cannot begin with this value
teste3: falha
input do teste:
{Print(1+1);
Print(1-1);
Print(1*1);
Print(1/1);
Print(---1);}
output esperado:
2
0
1
1
-1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 380, in
main()
File "main.py", line 377, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 345, in parse_block
child = Parser.parse_statement(token)
File "main.py", line 326, in parse_statement
token.selectNext()
File "main.py", line 201, in selectNext
raise Exception("Invalid, cannot begin with this value")
Exception: Invalid, cannot begin with this value
teste4: falha
input do teste:
{
x1 = 3;
Print(x1);
}
output esperado:
3
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 380, in
main()
File "main.py", line 377, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 338, in parse_block
token.selectNext()
File "main.py", line 201, in selectNext
raise Exception("Invalid, cannot begin with this value")
Exception: Invalid, cannot begin with this value
teste5: falha
input do teste:
{
x1 = 3;
y_2_ = 4;
Print(x1+y_2_+1);
}
output esperado:
8
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 380, in
main()
File "main.py", line 377, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 338, in parse_block
token.selectNext()
File "main.py", line 201, in selectNext
raise Exception("Invalid, cannot begin with this value")
Exception: Invalid, cannot begin with this value
teste6: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
;;;
Print(x1);
}
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 380, in
main()
File "main.py", line 377, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 338, in parse_block
token.selectNext()
File "main.py", line 201, in selectNext
raise Exception("Invalid, cannot begin with this value")
Exception: Invalid, cannot begin with this value
teste7: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
Print(x1);
y1 = x1 *100;
Print(y1);
}
output esperado:
4
400
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 380, in
main()
File "main.py", line 377, in main
Parser.run(file.read())
File "main.py", line 358, in run
output = Parser.parse_block(tokens)
File "main.py", line 338, in parse_block
token.selectNext()
File "main.py", line 201, in selectNext
raise Exception("Invalid, cannot begin with this value")
Exception: Invalid, cannot begin with this value
Problemas na v1.0.0
GabrielKabbani/LogCompKabbani
teste5: falha
input do teste:
1 1
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
Problemas na v2.1.4
GabrielKabbani/LogCompKabbani
teste1: falha
input do teste:
{Print(1);}
output esperado:
1
output recebido:
Print
entrou
1
teste2: falha
input do teste:
{
// Teste
Print(1);
}
output esperado:
1
output recebido:
Print
entrou
1
teste3: falha
input do teste:
{Print(1+1);
Print(1-1);
Print(1*1);
Print(1/1);
Print(---1);}
output esperado:
2
0
1
1
-1
output recebido:
Print
entrou
entrou
Print
entrou
entrou
Print
entrou
entrou
Print
entrou
entrou
Print
entrou
2
0
1
1
-1
teste4: falha
input do teste:
{
x1 = 3;
Print(x1);
}
output esperado:
3
output recebido:
IDENTIFIER
entrou
Print
3
teste5: falha
input do teste:
{
x1 = 3;
y_2_ = 4;
Print(x1+y_2_+1);
}
output esperado:
8
output recebido:
IDENTIFIER
entrou
IDENTIFIER
entrou
Print
entrou
8
teste6: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
;;;
Print(x1);
}
output esperado:
4
output recebido:
IDENTIFIER
entrou
IDENTIFIER
entrou
SEMICOLON
SEMICOLON
SEMICOLON
Print
4
teste7: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
Print(x1);
y1 = x1 *100;
Print(y1);
}
output esperado:
4
400
output recebido:
IDENTIFIER
entrou
IDENTIFIER
entrou
Print
IDENTIFIER
entrou
Print
4
400
Problemas na v1.2.2
GabrielKabbani/LogCompKabbani
teste23: falha
input do teste:
2 // A /* 1 */ 2
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 208, in
main()
File "main.py", line 206, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 180, in run
output = Parser.parse_expression(tokens)
File "main.py", line 114, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 130, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 168, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste24: falha
input do teste:
1 //* A */ 1 /* A */
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 208, in
main()
File "main.py", line 206, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 180, in run
output = Parser.parse_expression(tokens)
File "main.py", line 114, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 130, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 168, in parse_factor
raise Exception("Invalid")
Exception: Invalid
teste27: falha
input do teste:
1 //* A
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 208, in
main()
File "main.py", line 206, in main
Parser.run(Pre_pro.filter(sys.argv[1]))
File "main.py", line 180, in run
output = Parser.parse_expression(tokens)
File "main.py", line 114, in parse_expression
result = Parser.parse_term(token)
File "main.py", line 130, in parse_term
result = Parser.parse_factor(token)
File "main.py", line 168, in parse_factor
raise Exception("Invalid")
Exception: Invalid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.