dmsc / fastbasic

FastBasic - Fast BASIC interpreter for the Atari 8-bit computers
GNU General Public License v2.0
139 stars 20 forks source link

Error compiling data for string array. #32

Closed ghost closed 4 years ago

ghost commented 4 years ago

I am getting "expected: data type" error between the () and BYTE. I am following what is stated in the documentation.

DATA GAME_OPTION_SHOW() BYTE = " PLAY FOR HIGH SCORE ",
BYTE = " WIPE OUT 25 LINES ", BYTE = " NEW SCREEN FOR EVERY LEVEL ", BYTE = " WIPEOUT MORE LINES FOR NEW LEVEL ", BYTE = " WIPE OUT 50 LINES ", BYTE = " WIPE OUT 100 LINES ", BYTE = " PLAY FOR HIGH SCORE WITH HIGHT "

dmsc commented 4 years ago

Hi!

What version are you using, and it is the IDE or the compiler?

Here, this works:

DATA GAME_OPTION_SHOW() BYTE = " PLAY FOR HIGH SCORE ",
DATA BYTE = " WIPE OUT 25 LINES ",
DATA BYTE = " NEW SCREEN FOR EVERY LEVEL ",
DATA BYTE = " WIPEOUT MORE LINES FOR NEW LEVEL ",
DATA BYTE = " WIPE OUT 50 LINES ",
DATA BYTE = " WIPE OUT 100 LINES ",
DATA BYTE = " PLAY FOR HIGH SCORE WITH HIGHT "
dmsc commented 4 years ago

Hi again, @peteym5

Any update on this?