hra1129 / msx_basic_compiler

MSX-BASICコンパイラ
MIT License
22 stars 2 forks source link

DATA lines throw syntax error #22

Closed zmajcenic closed 1 month ago

zmajcenic commented 2 months ago

All DATA lines throw syntax error. Is DATA statement supported ?

hra1129 commented 2 months ago

I have been absent due to illness. Now that I have recovered, I will resume correspondence.

DATA statements are supported. What specific code are you having trouble with?

hra1129 commented 1 month ago

100 DEFINT A-Z:SCREEN 1:COLOR 15,4,7 110 READ A$,B:IF A$="END" THEN 130 120 PRINT "[";A$;"]";B:GOTO 110 130 DATA "HELLO", 100, "WORLD!!", 200, "I love MSX.", 300, "END", 0

image

image

It is working fine at my place. Maybe there is a bug outside of the DATA statement that is causing the error in the DATA statement. If you could provide a simple code where the error occurs, it would help us to analyze the situation.

zmajcenic commented 1 month ago

Thanks, this was also caused by trying to compile .BAS instead of .ASC

hra1129 commented 1 month ago

With the recent release, we now officially support reading intermediate code formats. Try it out and see if it does what you want it to do.

zmajcenic commented 1 month ago

DATA lines are correctly handled now

hra1129 commented 1 month ago

Thanks!