JetJadeja / Tanzine

A Programming Language Interpreted in Python.
MIT License
6 stars 0 forks source link

Python Error Not Covered By Parser: (AttributeError: 'Parser' object has no attribute 'returned') #39

Open Tater-Bot opened 4 years ago

Tater-Bot commented 4 years ago

A Python error occurred when running this Tanzine: https://discordapp.com/channels/756630952846950461/756630952846950463/756966659423469629

Tanzine Code:

@VAR@ t = @MATH@ 8 * 2
@RUN@ (/print, @t)

Python Error:

Traceback (most recent call last):
  File "/root/tanzine-bot/tokens.py", line 421, in Parse
    x = exec(statment)
  File "<string>", line 1
    print( @t)
           ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "run.py", line 10, in <module>
    parser.Parse()
  File "/root/tanzine-bot/tokens.py", line 424, in Parse
    if self.returned:
AttributeError: 'Parser' object has no attribute 'returned'