JetJadeja / Tanzine

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

Python Error Not Covered By Parser: (SyntaxError: EOL while scanning string literal) #31

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/731302554784235520/732672699297562814/755911606197551216

Tanzine Code:

@FUNC@ <fetchJSON> [@url] {
  @VAR@ request = @RUN@ (requests/get,@url)
  @VAR@ json = @RUN@ (@request.json)
  @RETURN@ @json
}

@VAR@ response = @RUN@ (<fetchJSON>,"http://crows.sh:9000/cosmosis/getChain%22)

@RUN@ (/print,@response)

Python Error:

Traceback (most recent call last):
  File "run.py", line 10, in <module>
    parser.Parse()
  File "/root/tanzine-bot/tokens.py", line 362, in Parse
    self.run_functions(func, args)
  File "/root/tanzine-bot/tokens.py", line 452, in run_functions
    exec(function["args"][index] + f' = {arg}')
  File "<string>", line 1
    self.vars["url"] = "http://crows.sh:9000/cosmosis/getChain%22
                                                                ^
SyntaxError: EOL while scanning string literal