Yab(asic) for newbies

Thanks for giving this a shot! There seemed to be an issue with the code. I got this error -> line x: syntax error at "0xff", where “x” was every line that has indentation.

I didn’t download the zip file because I don’t have an account on that forum, and it turned out that copying (select->copy) from the forum includes some weird white-space characters that yab can’t handle. I initially thought Yab-IDE has a problem with the copy/paste, but then I tried StyleEdit, Pe and even mcedit (Midnight Commaner’s text editor) in the terminal - all with the same result. Either the forum has some strange text formatting, or WebPositive does something to the text.

Curiously, though, the problem only occurred with white-space on the outside of the text on each line of code - both leading and trailing space. Yab didn’t complain about the white-space inside the lines of code, go figure.

So after I cleaned up the white-space I ran the program and without the downloaded files of course I ended up with some “No such file or directory” errors. I can test them later, if you manage to upload the files elsewhere.

In the meantime I checked the copy/paste and the reformatted files with MCs hex viewer, and this is how the white-spaces are displayed in HEX in:

  • the copy/paste file: C2 A0 (succession of these)
  • the reformatted file: 20 (one or more) - ASCII 32 (space)
  • the reformatted file: 09 (one or more) - ASCII 9 (TAB)