bobbimanners / EightBall

The Eight Bit Algorithmic Language for Apple II, Commodore 64 and VIC20
GNU General Public License v3.0
19 stars 3 forks source link

Repeated binary operators -> crash #3

Closed bobbimanners closed 6 years ago

bobbimanners commented 6 years ago

This crashes the interpreter right now:

 pr.dec 1**2

I am sure there are other cases too!

bobbimanners commented 6 years ago

This crashes on Linux because it is interpreted as 1(2). Attempting to dereference address 0x02 is a Segmentation Violation on Linux.

Not a bug.

Expressions such as 1//2 or 1%%2 are correctly identified as errors.