neilsf / XC-BASIC

A compiling BASIC dialect for the Commodore-64
https://xc-basic.net/
MIT License
74 stars 15 forks source link

Compiler crashes if there's an error in a PETSCII escape code #99

Open mrg-75 opened 4 years ago

mrg-75 commented 4 years ago

If you enter an unrecognised PETSCII escape sequence, the compiler throws an error.

Example:

print "{abc}"

std.conv.ConvException@C:\hostedtoolcache\windows\dc\dmd-2.090.1\x64\dmd2\windows\bin\..\..\src\phobos\std\conv.d(2312): Unexpected 'a' when converting from type string to type uint

JJFlash-IT commented 4 years ago

This also happens if you enter a valid PETSCII escape sequence, but not in upper case, like {clr} or {CLr} instead of {CLR}