JetJadeja / Tanzine

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

If a function takes a parameter but none is provided the Parser will stall forever. #20

Closed transmissions11 closed 4 years ago

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

@VAR@ x = @RUN@ (<fetchJSON>)
@RUN@ (/print,None)

This code causes the parser to just never print or throw any errors, it just waits.

transmissions11 commented 4 years ago

Oh nevermind this is due to trying to fetch "None"