Snakel/Errors

From Esolang
Jump to navigation Jump to search
Back to Snakel
This is still a work in progress. It may be changed in the future.

If you make an error in the code (for example putting an undefined variable into the code) in a Snakel interpreter. Then the terminal (or emiter as it's called in the gammaline universe) will emit an error and will explain and show where you made a mistake

TypeError

Using a wrong type in a variable

code:

­ 1: !for example
­ 2: num a="eso"

emiter:

­ Current operation stoped
­ Error Type:TypeError
­ At what line:line 2
­ Explanation:
­ 2: num a="eso"
­ ­ ­ ­ ­ ­ ­ ­ ­ ­ -----
­ Wrong value type. num is used as a's type, str was used instead