arthurolga / compilador_julia Goto Github PK
View Code? Open in Web Editor NEW⚙️ Compiler for JuliaLang written in Python
⚙️ Compiler for JuliaLang written in Python
Aluno: arthurolga
Release 2.4.* não encontrada!
Aluno: arthurolga
teste45: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
x = true
if ( x)
println( 42 )
end
teste58: falha
input do teste:
local a::String
a = 1 * "a"
println( a )
output esperado:
1a
output recebido:
a
teste60: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
if("a")
println( 1)
end
teste62: falha, não deu erro mais deveria (algo deveria ter saido no stderr)
input do teste:
if("a")
println( 1)
end
Aluno: arthurolga
teste2: falha
input do teste:
println(5*5)
println(5/5)
println(0/5)
println(1/2)
println(50*50)
output esperado:
25
1
0
0
2500
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 690, in
main()
File "main.py", line 686, in main
Parser.run(expression)
File "main.py", line 676, in run
Parser.parseProgram(tokenizer).evaluate(globalSymbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 210, in evaluate
self.children[i].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 217, in evaluate
print(self.children[0].evaluate(symbolTable))
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 71, in evaluate
symbolTable) * self.children[1].evaluate()
TypeError: evaluate() missing 1 required positional argument: 'symbolTable'
teste4: falha
input do teste:
local x1::Int
local y2::Int
local z_final::Int
x1 = 3 #= bla bla x1 = 9999998 =#
y2 = 4
z_final = x1 + y2 *33
println(z_final)
output esperado:
135
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 690, in
main()
File "main.py", line 686, in main
Parser.run(expression)
File "main.py", line 676, in run
Parser.parseProgram(tokenizer).evaluate(globalSymbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 210, in evaluate
self.children[i].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 167, in evaluate
value = self.children[1].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 46, in evaluate
symbolTable) + self.children[1].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 71, in evaluate
symbolTable) * self.children[1].evaluate()
TypeError: evaluate() missing 1 required positional argument: 'symbolTable'
teste5: falha
input do teste:
local x1::Int
local y2::Int
local z_final::Int
x1 = 3
y2 = 4
z_final = (x1 + y2) *33
println(z_final)
output esperado:
231
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 690, in
main()
File "main.py", line 686, in main
Parser.run(expression)
File "main.py", line 676, in run
Parser.parseProgram(tokenizer).evaluate(globalSymbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 210, in evaluate
self.children[i].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 167, in evaluate
value = self.children[1].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 71, in evaluate
symbolTable) * self.children[1].evaluate()
TypeError: evaluate() missing 1 required positional argument: 'symbolTable'
teste7: falha
input do teste:
local x1::Int
local y1::Int
x1 = 3
x1 = x1 +1
println(x1)
y1 = x1 *100
println(y1)
output esperado:
4
400
output recebido:
4
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 690, in
main()
File "main.py", line 686, in main
Parser.run(expression)
File "main.py", line 676, in run
Parser.parseProgram(tokenizer).evaluate(globalSymbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 210, in evaluate
self.children[i].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 167, in evaluate
value = self.children[1].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 71, in evaluate
symbolTable) * self.children[1].evaluate()
TypeError: evaluate() missing 1 required positional argument: 'symbolTable'
teste9: falha
input do teste:
local x1::Int
x1 = 3
x1 = (x1 +1 * 3)
println(x1)
output esperado:
6
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 690, in
main()
File "main.py", line 686, in main
Parser.run(expression)
File "main.py", line 676, in run
Parser.parseProgram(tokenizer).evaluate(globalSymbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 210, in evaluate
self.children[i].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 167, in evaluate
value = self.children[1].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 46, in evaluate
symbolTable) + self.children[1].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 71, in evaluate
symbolTable) * self.children[1].evaluate()
TypeError: evaluate() missing 1 required positional argument: 'symbolTable'
teste37: falha
input do teste:
local x::Int
local y::Int
x = readline()
y = x*2
println(y)
stdin do teste:
42
output esperado:
84
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 690, in
main()
File "main.py", line 686, in main
Parser.run(expression)
File "main.py", line 676, in run
Parser.parseProgram(tokenizer).evaluate(globalSymbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 210, in evaluate
self.children[i].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 167, in evaluate
value = self.children[1].evaluate(symbolTable)
File "/home/raul/Documentos/Github/LogCompTester/Compilers/src/arthurolga/nodes.py", line 71, in evaluate
symbolTable) * self.children[1].evaluate()
TypeError: evaluate() missing 1 required positional argument: 'symbolTable'
Aluno: arthurolga
teste3: falha
input do teste:
x1 = 3
y2 = 4
z_final = x1 + y2
println(z_final)
output esperado:
7
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 283, in
main()
File "main.py", line 279, in main
Parser.run(expression)
File "main.py", line 269, in run
tokenizer) #Parser.parseExpression(tokenizer).evaluate()
File "main.py", line 234, in parseBlock
Parser.parseCommand(tokenizer)
File "main.py", line 207, in parseCommand
tokenizer.selectNext()
File "main.py", line 132, in selectNext
" Unindentified character: {}".format(current_c))
ValueError: Unindentified character: _
teste4: falha
input do teste:
x1 = 3 #= bla bla x1 = 9999998 =#
y2 = 4
z_final = x1 + y2 *33
println(z_final)
output esperado:
135
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 283, in
main()
File "main.py", line 279, in main
Parser.run(expression)
File "main.py", line 269, in run
tokenizer) #Parser.parseExpression(tokenizer).evaluate()
File "main.py", line 234, in parseBlock
Parser.parseCommand(tokenizer)
File "main.py", line 207, in parseCommand
tokenizer.selectNext()
File "main.py", line 132, in selectNext
" Unindentified character: {}".format(current_c))
ValueError: Unindentified character: _
teste5: falha
input do teste:
x1 = 3
y2 = 4
z_final = (x1 + y2) *33
println(z_final)
output esperado:
231
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 283, in
main()
File "main.py", line 279, in main
Parser.run(expression)
File "main.py", line 269, in run
tokenizer) #Parser.parseExpression(tokenizer).evaluate()
File "main.py", line 234, in parseBlock
Parser.parseCommand(tokenizer)
File "main.py", line 207, in parseCommand
tokenizer.selectNext()
File "main.py", line 132, in selectNext
" Unindentified character: {}".format(current_c))
ValueError: Unindentified character: _
teste16: falha
input do teste:
x_1x = 42
println(x_1x)
output esperado:
42
output recebido:
Mas algo saiu no stderror(que não deveria):
Traceback (most recent call last):
File "main.py", line 283, in
main()
File "main.py", line 279, in main
Parser.run(expression)
File "main.py", line 269, in run
tokenizer) #Parser.parseExpression(tokenizer).evaluate()
File "main.py", line 234, in parseBlock
Parser.parseCommand(tokenizer)
File "main.py", line 207, in parseCommand
tokenizer.selectNext()
File "main.py", line 132, in selectNext
" Unindentified character: {}".format(current_c))
ValueError: Unindentified character: _
Aluno: arthurolga
teste13: falha
input do teste:
1/1
output esperado:
1
output recebido:
1.0
teste15: falha
input do teste:
3168/99
output esperado:
32
output recebido:
32.0
teste17: falha
input do teste:
2*4/2
output esperado:
4
output recebido:
4.0
teste18: falha
input do teste:
0/1
output esperado:
0
output recebido:
0.0
teste19: falha
input do teste:
8 * 9 / 2
output esperado:
36
output recebido:
36.0
teste23: falha
input do teste:
1/2
output esperado:
0
output recebido:
0.5
Aluno: arthurolga
teste25: 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 124, in
main()
File "main.py", line 120, in main
Parser.run(expression)
File "main.py", line 114, in run
result = Parser.parseExpression(tokenizer)
File "main.py", line 107, in parseExpression
raise ValueError(" Character not expected: {}".format(tokenizer.actual.value))
ValueError: Character not expected: 1
v3.0 - No Issues
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.