EgonOlsen71 / basicv2

A Commodore (CBM) BASIC V2 interpreter/compiler written in Java
https://egonolsen71.github.io/basicv2/
The Unlicense
84 stars 15 forks source link

Error compiling: Failed to run optimizer! #61

Closed sine707 closed 10 months ago

sine707 commented 1 year ago

I get the following error when trying to compile:

!!! Error compiling: Failed to run optimizer!
*Error at: 10130 data  315,890,0,-1,0,0,-1,0
Caused by: java.lang.IllegalArgumentException: fromIndex(467) > toIndex(335)

Running on latest master.

EgonOlsen71 commented 11 months ago

That's most likely not the line that causes this but simply the last line in the program. Can you provide me with the complete source code, so that I can see for myself!?

EgonOlsen71 commented 10 months ago

Might be fixed now...please give it a try...

sine707 commented 10 months ago

Tried it, works now! :)