lucaskf1996 / logcomp Goto Github PK
View Code? Open in Web Editor NEWRepositório para Lógica da Computação
Repositório para Lógica da Computação
lucaskf1996/logcomp
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 2, in
from parser import Parser
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 5, in
from writer import Writer
ModuleNotFoundError: No module named "writer"
lucaskf1996/logcomp
teste1: falha
input do teste:
1+1
output esperado:
2
output recebido:
1
1
2
teste2: falha
input do teste:
21+21
output esperado:
42
output recebido:
21
21
42
teste3: falha
input do teste:
1-1
output esperado:
0
output recebido:
1
1
0
teste4: falha
input do teste:
50-150
output esperado:
-100
output recebido:
50
150
-100
teste8: falha
input do teste:
100 + 100
output esperado:
200
output recebido:
100
100
200
teste9: falha
input do teste:
100 + 100 - 100+1
output esperado:
101
output recebido:
100
100
100
1
101
teste10: falha
input do teste:
100 + 100 - 100+1 -101 - 900
output esperado:
-900
output recebido:
100
100
100
1
101
900
-900
teste11: falha
input do teste:
1*1
output esperado:
1
output recebido:
1
1
1
teste12: falha
input do teste:
1/1
output esperado:
1
output recebido:
1
1
1
teste13: falha
input do teste:
32*985
output esperado:
31520
output recebido:
32
985
31520
teste14: falha
input do teste:
3168/99
output esperado:
32
output recebido:
3168
99
32
teste15: falha
input do teste:
2+5*4
output esperado:
22
output recebido:
2
5
4
22
teste16: falha
input do teste:
2*4/2
output esperado:
4
output recebido:
2
4
2
4
teste17: falha
input do teste:
0/1
output esperado:
0
output recebido:
0
1
0
teste18: falha
input do teste:
8 * 9 / 2
output esperado:
36
output recebido:
8
9
2
36
teste22: falha
input do teste:
1/2
output esperado:
0
output recebido:
1
2
0
teste23: falha
input do teste:
/* A /* 1 */ 2
output esperado:
2
output recebido:
2
2
teste24: falha
input do teste:
/* A */ 1 /* A */
output esperado:
1
output recebido:
1
1
teste25: falha
input do teste:
1 + /* 2 */ 3
output esperado:
4
output recebido:
1
3
4
teste29: falha
input do teste:
(1+1)*3
output esperado:
6
output recebido:
1
1
3
6
teste30: falha
input do teste:
(1+/*A */1)*10
output esperado:
20
output recebido:
1
1
10
20
teste31: falha
input do teste:
(1+1)*(2+2)
output esperado:
8
output recebido:
1
1
2
2
8
teste32: falha
input do teste:
(10*(9*9))
output esperado:
810
output recebido:
10
9
9
810
teste33: falha
input do teste:
(((1+1)))
output esperado:
2
output recebido:
1
1
2
teste38: falha
input do teste:
-1
output esperado:
-1
output recebido:
1
-1
teste39: falha
input do teste:
--2
output esperado:
2
output recebido:
2
2
teste40: falha
input do teste:
- -2
output esperado:
2
output recebido:
2
2
teste41: falha
input do teste:
--2+40
output esperado:
42
output recebido:
2
40
42
teste42: falha
input do teste:
40--2
output esperado:
42
output recebido:
40
2
42
teste43: falha
input do teste:
44---2
output esperado:
42
output recebido:
44
2
42
teste44: falha
input do teste:
40+-+-2
output esperado:
42
output recebido:
40
2
42
teste45: falha
input do teste:
40+++++++++2
output esperado:
42
output recebido:
40
2
42
lucaskf1996/logcomp
teste1: falha
input do teste:
{
/* v2.2 testing */
int x_1;
x_1 = scanf();
if ((x_1 > 1) && !(x_1 < 1)) {
x_1 = 3;
}
else {
{
x_1 = (-20+30)*4*3/40;;;;; /* teste de comentario */
}
}
printf(x_1);
x_1 = scanf();
if ((x_1 > 1) && !(x_1 < 1))
x_1 = 3;
else
x_1 = (-20+30)*12/40;;;;;
printf(x_1);
while ((x_1 > 1) || (x_1 == 1)) {x_1 = x_1 - 1;printf(x_1);}}
stdin do teste:
3
0
output esperado:
3
3
2
1
0
output recebido:
(3, "int")
(3, "int")
3
(0, "int")
(3, "int")
3
(2, "int")
2
(1, "int")
1
(0, "int")
0
teste2: falha
input do teste:
{
/* Single var */
int x_1;
x_1 = 1;
printf(x_1);
}
output esperado:
1
output recebido:
(1, "int")
1
teste3: falha
input do teste:
{
/* All bool and int operations */
int y, z;
y = 2;
z = (y == 2);
printf(y+z);
printf(y-z);
printf(y*z);
printf(y/z);
printf(y == z);
printf(y < z);
printf(y > z);
}
output esperado:
3
1
2
2
0
0
1
output recebido:
(2, "int")
(1, "int")
3
1
2
2
0
0
1
teste4: falha
input do teste:
{
/* All str operations */
str a, b;
int x_1, y, z;
x_1 = 1; y = 1; z = 2;
a = "abc";
b = "def";
printf(a.b);
printf(a.x_1);
printf(x_1.a);
printf(y.z);
printf(a.(x_1==1));
printf(a == a);
printf(a < b);
printf(a > b);
}
output esperado:
abcdef
abc1
1abc
12
abc1
1
1
0
output recebido:
(1, "int")
(1, "int")
(2, "int")
("abc", "str")
("def", "str")
("abc", "str")("def", "str")
("abc", "str")1
1("abc", "str")
12
("abc", "str")1
1
1
0
lucaskf1996/logcomp
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 7, in
Parser.run(contents, sys.argv[1])
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 237, in run
root = Parser.parseBlock()
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 116, in parseBlock
raise Exception("Block not opened")
Exception: Block not opened
lucaskf1996/logcomp
Mas algo saiu no stderror(que não deveria):
/home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:146: error: label IF0" inconsistently redefined /home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:121: note: label
IF0" originally defined here
/home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:147: error: label ENDIF0" inconsistently redefined /home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:130: note: label
ENDIF0" originally defined here
/home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:168: warning: label alone on a line without a colon might be in error [-w+orphan-labels]
lucaskf1996/logcomp
teste3: falha
input do teste:
{printf(1+1);
printf(1-1);
printf(1*1);
printf(1/1);
printf(---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 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 454, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 497, in parseStatement
raise Exception("missing parenthesis")
Exception: missing parenthesis
teste18: falha
input do teste:
{
if (1==1)
printf(1);
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 453, in parseBlock
raise Exception("Block not closed")
Exception: Block not closed
teste19: falha
input do teste:
{
if (1==1) {
printf(1);
printf(2);
}
}
output esperado:
1
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 453, in parseBlock
raise Exception("Block not closed")
Exception: Block not closed
teste22: falha
input do teste:
{
x = 1;
if ((x==1) && (x<2)) {
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 453, in parseBlock
raise Exception("Block not closed")
Exception: Block not closed
teste23: falha
input do teste:
{
x = 1;
if ((x==2) || (x<2)) {
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 453, in parseBlock
raise Exception("Block not closed")
Exception: Block not closed
teste24: falha
input do teste:
{
x = 1;
if (!(x==2)) {
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 454, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 535, in parseStatement
raise Exception("missing parenthesis")
Exception: missing parenthesis
teste25: falha
input do teste:
{
if ((-1+2) == (3*1-2)) {
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 454, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 518, in parseStatement
child1 = Parser.parseRelationalExpression()
File "main.py", line 433, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 421, in parseExpression
node = Parser.parseTerm()
File "main.py", line 409, in parseTerm
node = Parser.Factor()
File "main.py", line 401, in Factor
raise Exception("invalid sequence")
Exception: invalid sequence
teste26: falha
input do teste:
{
if (-1+2 == 3*1-2) {
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 454, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 535, in parseStatement
raise Exception("missing parenthesis")
Exception: missing parenthesis
teste27: falha
input do teste:
{
if (! (((1>0) || (1==0)) && (0==9))){
printf(2);
}
}
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 454, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 535, in parseStatement
raise Exception("missing parenthesis")
Exception: missing parenthesis
teste30: falha
input do teste:
{
if ((1==1));
printf(3);
}
output esperado:
3
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 454, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 540, in parseStatement
return Parser.parseBlock()
File "main.py", line 459, in parseBlock
raise Exception("Block not opened")
Exception: Block not opened
teste31: falha
input do teste:
{if(-1==-1)printf(2);}
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 453, in parseBlock
raise Exception("Block not closed")
Exception: Block not closed
teste32: falha
input do teste:
{
a = 0;
b = 1;
while ((a < 99999) && (b ==1)){
a = a +1;
printf(a);
if (a == 5){
b = 0;
}
}
printf(a);
}
output esperado:
1
2
3
4
5
5
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 573, in
Parser.run(contents)
File "main.py", line 562, in run
root = Parser.parseBlock()
File "main.py", line 453, in parseBlock
raise Exception("Block not closed")
Exception: Block not closed
teste44: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
{
x = scanf();
printf(x);
}
}
stdin do teste:
4
lucaskf1996/logcomp
teste1: falha
input do teste:
1+1
output esperado:
2
output recebido:
1
1
2
teste2: falha
input do teste:
21+21
output esperado:
42
output recebido:
21
21
42
teste3: falha
input do teste:
1-1
output esperado:
0
output recebido:
1
1
0
teste4: falha
input do teste:
50-150
output esperado:
-100
output recebido:
50
150
-100
teste8: falha
input do teste:
100 + 100
output esperado:
200
output recebido:
100
100
200
teste9: falha
input do teste:
100 + 100 - 100+1
output esperado:
101
output recebido:
100
100
100
1
101
teste10: falha
input do teste:
100 + 100 - 100+1 -101 - 900
output esperado:
-900
output recebido:
100
100
100
1
101
900
-900
teste11: falha
input do teste:
1*1
output esperado:
1
output recebido:
1
1
1
teste12: falha
input do teste:
1/1
output esperado:
1
output recebido:
1
1
1
teste13: falha
input do teste:
32*985
output esperado:
31520
output recebido:
32
985
31520
teste14: falha
input do teste:
3168/99
output esperado:
32
output recebido:
3168
99
32
teste15: falha
input do teste:
2+5*4
output esperado:
22
output recebido:
2
5
4
22
teste16: falha
input do teste:
2*4/2
output esperado:
4
output recebido:
2
4
2
4
teste17: falha
input do teste:
0/1
output esperado:
0
output recebido:
0
1
0
teste18: falha
input do teste:
8 * 9 / 2
output esperado:
36
output recebido:
8
9
2
36
teste22: falha
input do teste:
1/2
output esperado:
0
output recebido:
1
2
0
teste23: falha
input do teste:
/* A /* 1 */ 2
output esperado:
2
output recebido:
2
2
teste24: falha
input do teste:
/* A */ 1 /* A */
output esperado:
1
output recebido:
1
1
teste25: falha
input do teste:
1 + /* 2 */ 3
output esperado:
4
output recebido:
1
3
4
teste29: falha
input do teste:
(1+1)*3
output esperado:
6
output recebido:
1
1
3
6
teste30: falha
input do teste:
(1+/*A */1)*10
output esperado:
20
output recebido:
1
1
10
20
teste31: falha
input do teste:
(1+1)*(2+2)
output esperado:
8
output recebido:
1
1
2
2
8
teste32: falha
input do teste:
(10*(9*9))
output esperado:
810
output recebido:
10
9
9
810
teste33: falha
input do teste:
(((1+1)))
output esperado:
2
output recebido:
1
1
2
teste38: falha
input do teste:
-1
output esperado:
-1
output recebido:
1
-1
teste39: falha
input do teste:
--2
output esperado:
2
output recebido:
2
2
teste40: falha
input do teste:
- -2
output esperado:
2
output recebido:
2
2
teste41: falha
input do teste:
--2+40
output esperado:
42
output recebido:
2
40
42
teste42: falha
input do teste:
40--2
output esperado:
42
output recebido:
40
2
42
teste43: falha
input do teste:
44---2
output esperado:
42
output recebido:
44
2
42
teste44: falha
input do teste:
40+-+-2
output esperado:
42
output recebido:
40
2
42
teste45: falha
input do teste:
40+++++++++2
output esperado:
42
output recebido:
40
2
42
lucaskf1996/logcomp
Mas algo saiu no stderror(que não deveria):
/home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:162: warning: label alone on a line without a colon might be in error [-w+orphan-labels]
lucaskf1996/logcomp
teste23: falha
input do teste:
{
int x;
str x;
}
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
teste27: falha
input do teste:
{
str x;
x = scanf();
}
stdin do teste:
abc
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
teste32: falha
input do teste:
{
int x;
int x;
}
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
lucaskf1996/logcomp
teste1: falha
input do teste:
{printf(1);}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 201, in
print(Parser.run(contents))
File "main.py", line 190, in run
root = Parser.parseExpression()
File "main.py", line 175, in parseExpression
node = Parser.parseTerm()
File "main.py", line 165, in parseTerm
node = Parser.Factor()
File "main.py", line 143, in Factor
Parser.tokens.selectNext()
File "main.py", line 134, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste2: falha
input do teste:
{
/* Teste */
printf(1);
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 201, in
print(Parser.run(contents))
File "main.py", line 190, in run
root = Parser.parseExpression()
File "main.py", line 175, in parseExpression
node = Parser.parseTerm()
File "main.py", line 165, in parseTerm
node = Parser.Factor()
File "main.py", line 143, in Factor
Parser.tokens.selectNext()
File "main.py", line 134, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste3: falha
input do teste:
{printf(1+1);
printf(1-1);
printf(1*1);
printf(1/1);
printf(---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 201, in
print(Parser.run(contents))
File "main.py", line 190, in run
root = Parser.parseExpression()
File "main.py", line 175, in parseExpression
node = Parser.parseTerm()
File "main.py", line 165, in parseTerm
node = Parser.Factor()
File "main.py", line 143, in Factor
Parser.tokens.selectNext()
File "main.py", line 134, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste4: falha
input do teste:
{
x1 = 3;
printf(x1);
}
output esperado:
3
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 201, in
print(Parser.run(contents))
File "main.py", line 190, in run
root = Parser.parseExpression()
File "main.py", line 175, in parseExpression
node = Parser.parseTerm()
File "main.py", line 165, in parseTerm
node = Parser.Factor()
File "main.py", line 143, in Factor
Parser.tokens.selectNext()
File "main.py", line 134, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste5: falha
input do teste:
{
x1 = 3;
y_2_ = 4;
printf(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 201, in
print(Parser.run(contents))
File "main.py", line 190, in run
root = Parser.parseExpression()
File "main.py", line 175, in parseExpression
node = Parser.parseTerm()
File "main.py", line 165, in parseTerm
node = Parser.Factor()
File "main.py", line 143, in Factor
Parser.tokens.selectNext()
File "main.py", line 134, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste6: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
;;;
printf(x1);
}
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 201, in
print(Parser.run(contents))
File "main.py", line 190, in run
root = Parser.parseExpression()
File "main.py", line 175, in parseExpression
node = Parser.parseTerm()
File "main.py", line 165, in parseTerm
node = Parser.Factor()
File "main.py", line 143, in Factor
Parser.tokens.selectNext()
File "main.py", line 134, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste7: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
printf(x1);
y1 = x1 *100;
printf(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 201, in
print(Parser.run(contents))
File "main.py", line 190, in run
root = Parser.parseExpression()
File "main.py", line 175, in parseExpression
node = Parser.parseTerm()
File "main.py", line 165, in parseTerm
node = Parser.Factor()
File "main.py", line 143, in Factor
Parser.tokens.selectNext()
File "main.py", line 134, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
lucaskf1996/logcomp
teste17: falha
input do teste:
{
{
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 547, in run
raise Exception("invalid sequence")
Exception: invalid sequence
teste18: falha
input do teste:
{
if (1==1)
printf(1);
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 447, in parseBlock
raise Exception("Block not closed")
Exception: Block not closed
teste21: falha
input do teste:
{
if (2<1) {
printf(1);
}
else {printf(2);}}
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 547, in run
raise Exception("invalid sequence")
Exception: invalid sequence
teste22: falha
input do teste:
{
x = 1;
if ((x==1) && (x<2)) {
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 448, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 510, in parseStatement
child1 = Parser.parseRelationalExpression()
File "main.py", line 428, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 397, in Factor
raise Exception("invalid sequence")
Exception: invalid sequence
teste23: falha
input do teste:
{
x = 1;
if ((x==2) || (x<2)) {
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 448, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 510, in parseStatement
child1 = Parser.parseRelationalExpression()
File "main.py", line 428, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 397, in Factor
raise Exception("invalid sequence")
Exception: invalid sequence
teste24: falha
input do teste:
{
x = 1;
if (!(x==2)) {
printf(1);
}
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 448, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 510, in parseStatement
child1 = Parser.parseRelationalExpression()
File "main.py", line 428, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 377, in Factor
node = UnOp(Parser.tokens.actual.tokenType, Parser.Factor())
File "main.py", line 397, in Factor
raise Exception("invalid sequence")
Exception: invalid sequence
teste27: falha
input do teste:
{
if (! (((1>0) || (1==0)) && (0==9))){
printf(2);
}
}
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 448, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 510, in parseStatement
child1 = Parser.parseRelationalExpression()
File "main.py", line 428, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 377, in Factor
node = UnOp(Parser.tokens.actual.tokenType, Parser.Factor())
File "main.py", line 392, in Factor
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 392, in Factor
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 397, in Factor
raise Exception("invalid sequence")
Exception: invalid sequence
teste28: falha
input do teste:
{
a = 0;
while (a < 3){
a = a +1;
printf(a);
}
}
output esperado:
1
2
3
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 448, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 499, in parseStatement
node = WhileOp(child1, Parser.parseStatement())
File "main.py", line 532, in parseStatement
return Parser.parseBlock()
File "main.py", line 453, in parseBlock
raise Exception("Block not opened")
Exception: Block not opened
teste29: falha
input do teste:
{
a = 1;
while ((a < 3) || (a == 3)){
printf(a);
a = a +1;
}
}
output esperado:
1
2
3
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 448, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 497, in parseStatement
child1 = Parser.parseRelationalExpression()
File "main.py", line 428, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 397, in Factor
raise Exception("invalid sequence")
Exception: invalid sequence
teste30: falha
input do teste:
{
if ((1==1));
printf(3);
}
output esperado:
3
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 448, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 510, in parseStatement
child1 = Parser.parseRelationalExpression()
File "main.py", line 428, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 397, in Factor
raise Exception("invalid sequence")
Exception: invalid sequence
teste31: falha
input do teste:
{if(-1==-1)printf(2);}
output esperado:
2
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 447, in parseBlock
raise Exception("Block not closed")
Exception: Block not closed
teste32: falha
input do teste:
{
a = 0;
b = 1;
while ((a < 99999) && (b ==1)){
a = a +1;
printf(a);
if (a == 5){
b = 0;
}
}
printf(a);
}
output esperado:
1
2
3
4
5
5
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 552, in
Parser.run(contents)
File "main.py", line 541, in run
root = Parser.parseBlock()
File "main.py", line 448, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 497, in parseStatement
child1 = Parser.parseRelationalExpression()
File "main.py", line 428, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 417, in parseExpression
node = Parser.parseTerm()
File "main.py", line 405, in parseTerm
node = Parser.Factor()
File "main.py", line 397, in Factor
raise Exception("invalid sequence")
Exception: invalid sequence
teste45: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
{
{
printf(1);
}
lucaskf1996/logcomp
teste1: falha
input do teste:
{printf(1);}
output esperado:
1
output recebido:
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
1
teste2: falha
input do teste:
{
/* Teste */
printf(1);
}
output esperado:
1
output recebido:
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
1
teste3: falha
input do teste:
{printf(1+1);
printf(1-1);
printf(1*1);
printf(1/1);
printf(---1);}
output esperado:
2
0
1
1
-1
output recebido:
OBLOCK
PRINTF
OP
NUM
PLUS
NUM
CP
SC
PRINTF
OP
NUM
MINUS
NUM
CP
SC
PRINTF
OP
NUM
MULT
NUM
CP
SC
PRINTF
OP
NUM
DIV
NUM
CP
SC
PRINTF
OP
MINUS
MINUS
MINUS
NUM
CP
SC
CBLOCK
2
0
1
1
-1
teste4: falha
input do teste:
{
x1 = 3;
printf(x1);
}
output esperado:
3
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
PRINTF
OP
ID
CP
SC
CBLOCK
3
teste5: falha
input do teste:
{
x1 = 3;
y_2_ = 4;
printf(x1+y_2_+1);
}
output esperado:
8
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
ID
EQUAL
NUM
SC
PRINTF
OP
ID
PLUS
ID
PLUS
NUM
CP
SC
CBLOCK
8
teste6: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
;;;
printf(x1);
}
output esperado:
4
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
ID
EQUAL
ID
PLUS
NUM
SC
SC
SC
SC
PRINTF
OP
ID
CP
SC
CBLOCK
4
teste7: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
printf(x1);
y1 = x1 *100;
printf(y1);
}
output esperado:
4
400
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
ID
EQUAL
ID
PLUS
NUM
SC
PRINTF
OP
ID
CP
SC
ID
EQUAL
ID
MULT
NUM
SC
PRINTF
OP
ID
CP
SC
CBLOCK
4
400
teste17: falha
input do teste:
{
{
printf(1);
}
}
output esperado:
1
output recebido:
OBLOCK
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
1
teste18: falha
input do teste:
{
if (1==1)
printf(1);
}
output esperado:
1
output recebido:
OBLOCK
IF
OP
NUM
BOOLEQUAL
NUM
CP
PRINTF
OP
NUM
CP
SC
CBLOCK
1
teste19: falha
input do teste:
{
if (1==1) {
printf(1);
printf(2);
}
}
output esperado:
1
2
output recebido:
OBLOCK
IF
OP
NUM
BOOLEQUAL
NUM
CP
OBLOCK
PRINTF
OP
NUM
CP
SC
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
1
2
teste20: falha
input do teste:
{
if (1>2)
printf(1);
else
printf(2);
}
output esperado:
2
output recebido:
OBLOCK
IF
OP
NUM
MORE
NUM
CP
PRINTF
OP
NUM
CP
SC
ELSE
PRINTF
OP
NUM
CP
SC
CBLOCK
2
teste21: falha
input do teste:
{
if (2<1) {
printf(1);
}
else {printf(2);}}
output esperado:
2
output recebido:
OBLOCK
IF
OP
NUM
LESS
NUM
CP
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
ELSE
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
2
teste22: falha
input do teste:
{
x = 1;
if ((x==1) && (x<2)) {
printf(1);
}
}
output esperado:
1
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
IF
OP
OP
ID
BOOLEQUAL
NUM
CP
AND
OP
ID
LESS
NUM
CP
CP
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
1
teste23: falha
input do teste:
{
x = 1;
if ((x==2) || (x<2)) {
printf(1);
}
}
output esperado:
1
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
IF
OP
OP
ID
BOOLEQUAL
NUM
CP
OR
OP
ID
LESS
NUM
CP
CP
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
1
teste24: falha
input do teste:
{
x = 1;
if (!(x==2)) {
printf(1);
}
}
output esperado:
1
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
IF
OP
NOT
OP
ID
BOOLEQUAL
NUM
CP
CP
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
1
teste25: falha
input do teste:
{
if ((-1+2) == (3*1-2)) {
printf(1);
}
}
output esperado:
1
output recebido:
OBLOCK
IF
OP
OP
MINUS
NUM
PLUS
NUM
CP
BOOLEQUAL
OP
NUM
MULT
NUM
MINUS
NUM
CP
CP
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
1
teste26: falha
input do teste:
{
if (-1+2 == 3*1-2) {
printf(1);
}
}
output esperado:
1
output recebido:
OBLOCK
IF
OP
MINUS
NUM
PLUS
NUM
BOOLEQUAL
NUM
MULT
NUM
MINUS
NUM
CP
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
1
teste27: falha
input do teste:
{
if (! (((1>0) || (1==0)) && (0==9))){
printf(2);
}
}
output esperado:
2
output recebido:
OBLOCK
IF
OP
NOT
OP
OP
OP
NUM
MORE
NUM
CP
OR
OP
NUM
BOOLEQUAL
NUM
CP
CP
AND
OP
NUM
BOOLEQUAL
NUM
CP
CP
CP
OBLOCK
PRINTF
OP
NUM
CP
SC
CBLOCK
CBLOCK
2
teste28: falha
input do teste:
{
a = 0;
while (a < 3){
a = a +1;
printf(a);
}
}
output esperado:
1
2
3
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
WHILE
OP
ID
LESS
NUM
CP
OBLOCK
ID
EQUAL
ID
PLUS
NUM
SC
PRINTF
OP
ID
CP
SC
CBLOCK
CBLOCK
1
2
3
teste29: falha
input do teste:
{
a = 1;
while ((a < 3) || (a == 3)){
printf(a);
a = a +1;
}
}
output esperado:
1
2
3
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
WHILE
OP
OP
ID
LESS
NUM
CP
OR
OP
ID
BOOLEQUAL
NUM
CP
CP
OBLOCK
PRINTF
OP
ID
CP
SC
ID
EQUAL
ID
PLUS
NUM
SC
CBLOCK
CBLOCK
1
2
3
teste30: falha
input do teste:
{
if ((1==1));
printf(3);
}
output esperado:
3
output recebido:
OBLOCK
IF
OP
OP
NUM
BOOLEQUAL
NUM
CP
CP
SC
PRINTF
OP
NUM
CP
SC
CBLOCK
3
teste31: falha
input do teste:
{if(-1==-1)printf(2);}
output esperado:
2
output recebido:
OBLOCK
IF
OP
MINUS
NUM
BOOLEQUAL
MINUS
NUM
CP
PRINTF
OP
NUM
CP
SC
CBLOCK
2
teste32: falha
input do teste:
{
a = 0;
b = 1;
while ((a < 99999) && (b ==1)){
a = a +1;
printf(a);
if (a == 5){
b = 0;
}
}
printf(a);
}
output esperado:
1
2
3
4
5
5
output recebido:
OBLOCK
ID
EQUAL
NUM
SC
ID
EQUAL
NUM
SC
WHILE
OP
OP
ID
LESS
NUM
CP
AND
OP
ID
BOOLEQUAL
NUM
CP
CP
OBLOCK
ID
EQUAL
ID
PLUS
NUM
SC
PRINTF
OP
ID
CP
SC
IF
OP
ID
BOOLEQUAL
NUM
CP
OBLOCK
ID
EQUAL
NUM
SC
CBLOCK
CBLOCK
PRINTF
OP
ID
CP
SC
CBLOCK
1
2
3
4
5
5
teste33: falha
input do teste:
{
x = scanf();
printf(x);
}
stdin do teste:
7
output esperado:
7
output recebido:
OBLOCK
ID
EQUAL
SCANF
OP
CP
SC
PRINTF
OP
ID
CP
SC
CBLOCK
7
teste34: falha
input do teste:
{
x = scanf();
y = scanf();
printf(x+y);
}
stdin do teste:
2
8
output esperado:
10
output recebido:
OBLOCK
ID
EQUAL
SCANF
OP
CP
SC
ID
EQUAL
SCANF
OP
CP
SC
PRINTF
OP
ID
PLUS
ID
CP
SC
CBLOCK
10
teste35: falha
input do teste:
{
printf(scanf());
}
stdin do teste:
19
output esperado:
19
output recebido:
OBLOCK
PRINTF
OP
SCANF
OP
CP
CP
SC
CBLOCK
19
lucaskf1996/logcomp
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "IntVal" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 21, in Evaluate
return self.children[0].Evaluate() + self.children[1].Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 23, in Evaluate
return self.children[0].Evaluate() - self.children[1].Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "IntVal" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 23, in Evaluate
return self.children[0].Evaluate() - self.children[1].Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 21, in Evaluate
return self.children[0].Evaluate() + self.children[1].Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 21, in Evaluate
return self.children[0].Evaluate() + self.children[1].Evaluate()
File "main.py", line 43, in Evaluate
return self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
lucaskf1996/logcomp
teste1: falha
input do teste:
{printf(1);}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 347, in
Parser.run(contents)
File "main.py", line 338, in run
root = Parser.parseBlock()
File "main.py", line 295, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 322, in parseStatement
raise Exception("invalid sequence")
Exception: invalid sequence
teste2: falha
input do teste:
{
/* Teste */
printf(1);
}
output esperado:
1
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 347, in
Parser.run(contents)
File "main.py", line 338, in run
root = Parser.parseBlock()
File "main.py", line 295, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 322, in parseStatement
raise Exception("invalid sequence")
Exception: invalid sequence
teste3: falha
input do teste:
{printf(1+1);
printf(1-1);
printf(1*1);
printf(1/1);
printf(---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 347, in
Parser.run(contents)
File "main.py", line 338, in run
root = Parser.parseBlock()
File "main.py", line 295, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 322, in parseStatement
raise Exception("invalid sequence")
Exception: invalid sequence
teste4: falha
input do teste:
{
x1 = 3;
printf(x1);
}
output esperado:
3
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 347, in
Parser.run(contents)
File "main.py", line 338, in run
root = Parser.parseBlock()
File "main.py", line 295, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 322, in parseStatement
raise Exception("invalid sequence")
Exception: invalid sequence
teste5: falha
input do teste:
{
x1 = 3;
y_2_ = 4;
printf(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 347, in
Parser.run(contents)
File "main.py", line 338, in run
root = Parser.parseBlock()
File "main.py", line 295, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 322, in parseStatement
raise Exception("invalid sequence")
Exception: invalid sequence
teste6: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
;;;
printf(x1);
}
output esperado:
4
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 347, in
Parser.run(contents)
File "main.py", line 338, in run
root = Parser.parseBlock()
File "main.py", line 295, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 322, in parseStatement
raise Exception("invalid sequence")
Exception: invalid sequence
teste7: falha
input do teste:
{
x1 = 3;
x1 = x1 +1;
printf(x1);
y1 = x1 *100;
printf(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 347, in
Parser.run(contents)
File "main.py", line 338, in run
root = Parser.parseBlock()
File "main.py", line 295, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 322, in parseStatement
raise Exception("invalid sequence")
Exception: invalid sequence
teste13: falha
input do teste:
{
printf = 19;
x2 = printf;
}
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
lucaskf1996/logcomp
teste3: falha
input do teste:
{
/* All bool and int operations */
int y, z;
y = 2;
z = (y == 2);
printf(y+z);
printf(y-z);
printf(y*z);
printf(y/z);
printf(y == z);
printf(y < z);
printf(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 */
str a, b;
int x_1, y, z;
x_1 = 1; y = 1; z = 2;
a = "abc";
b = "def";
printf(a.b);
printf(a.x_1);
printf(x_1.a);
printf(y.z);
printf(a.(x_1==1));
printf(a == a);
printf(a < b);
printf(a > b);
}
output esperado:
abcdef
abc1
1abc
12
abc1
1
1
0
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 694, in
Parser.run(contents)
File "main.py", line 683, in run
root = Parser.parseBlock()
File "main.py", line 558, in parseBlock
node.addChild(Parser.parseStatement())
File "main.py", line 608, in parseStatement
node = PrintOp(Parser.parseRelationalExpression())
File "main.py", line 537, in parseRelationalExpression
node = Parser.parseExpression()
File "main.py", line 525, in parseExpression
node = Parser.parseTerm()
File "main.py", line 513, in parseTerm
node = Parser.Factor()
File "main.py", line 476, in Factor
Parser.tokens.selectNext()
File "main.py", line 428, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste23: falha
input do teste:
{
int x;
str x;
}
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
teste27: falha
input do teste:
{
str x;
x = scanf();
}
stdin do teste:
abc
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
teste32: falha
input do teste:
{
int x;
int x;
}
não recebi nada de output!(stderr e stdout estão vazios e não deveriam)
lucaskf1996/logcomp
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
teste23: falha
input do teste:
/* 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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
teste24: falha
input do teste:
/* 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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
teste25: falha
input do teste:
1 + /* 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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
teste30: falha
input do teste:
(1+/*A */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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
lucaskf1996/logcomp
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
teste23: falha
input do teste:
/* 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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
teste24: falha
input do teste:
/* 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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
teste25: falha
input do teste:
1 + /* 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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
teste30: falha
input do teste:
(1+/*A */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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
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 199, in
print(Parser.run(sys.argv[1]))
File "main.py", line 189, in run
root = Parser.parseExpression()
File "main.py", line 174, in parseExpression
node = Parser.parseTerm()
File "main.py", line 164, in parseTerm
node = Parser.Factor()
File "main.py", line 158, in Factor
raise Exception("invalid sequence2.2")
Exception: invalid sequence2.2
lucaskf1996/logcomp
teste5: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
1 1
lucaskf1996/logcomp
teste9: falha
input do teste:
100 + 100 - 100+1
output esperado:
101
output recebido:
100
teste10: falha
input do teste:
100 + 100 - 100+1 -101 - 900
output esperado:
-900
output recebido:
100
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 55, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 55, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 55, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 55, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 62, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 55, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 55, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 55, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 55, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste23: falha
input do teste:
/* 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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 52, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste24: falha
input do teste:
/* 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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 52, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste25: falha
input do teste:
1 + /* 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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 59, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 52, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
teste30: falha
input do teste:
(1+/*A */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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 52, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 52, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 52, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 52, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 76, in parseExpression
raise Exception("invalid sequence")
Exception: invalid sequence
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 76, in parseExpression
raise Exception("invalid sequence")
Exception: invalid sequence
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 76, in parseExpression
raise Exception("invalid sequence")
Exception: invalid sequence
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 76, in parseExpression
raise Exception("invalid sequence")
Exception: invalid sequence
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 66, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 66, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 64, in parseExpression
raise Exception("invalid sequence")
Exception: invalid sequence
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 109, in
print(Parser.run(sys.argv[1]))
File "main.py", line 80, in run
return(Parser.parseExpression())
File "main.py", line 59, in parseExpression
Parser.tokens.selectNext()
File "main.py", line 46, in selectNext
raise Exception("Invalid char")
Exception: Invalid char
lucaskf1996/logcomp
Mas algo saiu no stderror(que não deveria):
/home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:146: error: label IF0" inconsistently redefined /home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:121: note: label
IF0" originally defined here
/home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:147: error: label ENDIF0" inconsistently redefined /home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:130: note: label
ENDIF0" originally defined here
/home/ubuntu/LogCompTester/Compilers/tests/C/3.0_tests/teste1.asm:168: warning: label alone on a line without a colon might be in error [-w+orphan-labels]
lucaskf1996/logcomp
teste1: falha
input do teste:
void main()
{
/* v2.2 testing */
int x_1;
x_1 = scanf();
if ((x_1 > 1) && !(x_1 < 1)) {
x_1 = 3;
}
else {
{
x_1 = (-20+30)*4*3/40;;;;; /* teste de comentario */
}
}
printf(x_1);
x_1 = scanf();
if ((x_1 > 1) && !(x_1 < 1))
x_1 = 3;
else
x_1 = (-20+30)*12/40;;;;;
printf(x_1);
while ((x_1 > 1) || (x_1 == 1)) {x_1 = x_1 - 1;printf(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 7, in
Parser.run(contents)
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 367, in run
root = Parser.parseProgram()
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 16, in parseProgram
node.addChild(Parser.parseDeclaration())
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 67, in parseDeclaration
node = FuncDec([declId,declType], args, Parser.parseBlock())
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 205, in parseBlock
node.addChild(Parser.parseStatement())
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 332, in parseStatement
node = IfOp([child1, child2, child3])
TypeError: init() missing 1 required positional argument: "funcTable"
lucaskf1996/logcomp
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 8, in
Parser.run(contents, sys.argv[1])
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 237, in run
root = Parser.parseBlock()
File "/home/ubuntu/LogCompTester/Compilers/src/lucaskf1996/logcomp/parser.py", line 116, in parseBlock
raise Exception("Block not opened")
Exception: Block not opened
lucaskf1996/logcomp
teste12: falha
input do teste:
{
1x = 432;
printf(1x);
}
Timeout, teste demorou mais de 180.0 segundo para rodar, assumo que entrou em um loop infinito
teste16: falha
input do teste:
{
3 = 2 + 1;
}
Timeout, teste demorou mais de 180.0 segundo para rodar, assumo que entrou em um loop infinito
teste39: falha
input do teste:
{
if (1==1) {
printf(1);
}
else {
printf(1);
}
else {
printf(1);
}
}
Timeout, teste demorou mais de 180.0 segundo para rodar, assumo que entrou em um loop infinito
lucaskf1996/logcomp
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "IntVal" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 21, in Evaluate
return self.children[0].Evaluate() + self.children[1].Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 23, in Evaluate
return self.children[0].Evaluate() - self.children[1].Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "IntVal" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 23, in Evaluate
return self.children[0].Evaluate() - self.children[1].Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 21, in Evaluate
return self.children[0].Evaluate() + self.children[1].Evaluate()
File "main.py", line 45, in Evaluate
return -self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
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 200, in
print(Parser.run(contents))
File "main.py", line 193, in run
return root.Evaluate()
File "main.py", line 21, in Evaluate
return self.children[0].Evaluate() + self.children[1].Evaluate()
File "main.py", line 43, in Evaluate
return self.children[0].Evaluate()
TypeError: "UnOp" object is not subscriptable
lucaskf1996/logcomp
teste1: falha
Timeout, teste demorou mais de 10.0 segundo para rodar, assumo que entrou em um loop infinito
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.