shakespearelang icon indicating copy to clipboard operation
shakespearelang copied to clipboard

Numeric Input Error on EOF or Invalid Number – Bug or Implementation Detail?

Open sy-python opened this issue 1 year ago • 14 comments

Description: This interpreter, when parsing numeric input, raises an error (ShakespeareRuntimeError) when encountering an invalid number or reaching the end of file (EOF). However, other implementations of the Shakespeare Programming Language (SPL) tend to return 0 in these cases instead of raising an error.

If this is a deliberate implementation choice, please indicate as such in project files. If not, then it is a bug and should be fixed.

sy-python avatar Dec 01 '24 06:12 sy-python