isaacg1 / pyth

Pyth, an extremely concise language. Try it here:
https://pyth.herokuapp.com/
MIT License
263 stars 57 forks source link

Error creating Python code from Pyth Source #242

Open cykapup opened 6 years ago

cykapup commented 6 years ago

I was working on this problem, and I created a very basic starting point.

As I tried executing the code, there were more errors than I'd expected, including "parse_token", which I didn't have in my code. I opened the debugger to see what I did, and it did not show the converted python code, just lines on lines of compiler errors.

The code was VzIqHN=Z?qJ\\hZtZ)+*dZN=HN, link is here

cykapup commented 6 years ago

Issue was I typed "J" instead of "H" on character 11. I guess the auto-init tripped up the compiler

Maltysen commented 6 years ago

Yeah, this sort of error usually means that you messed up the arity somewhere. This could be because you actually gave the wrong number of arguments, or as you did, used a wrong command, which messed stuff up down the line.

We may want to look into catching these errors and doing our own compile-time error reporting, but that may be hard.