remy / txt2bas

ZX Spectrum BASIC conversion tooling (specific support for NextBASIC)
19 stars 0 forks source link

Support long string variable names #40

Closed dbolli closed 11 months ago

dbolli commented 11 months ago

String variable names can now be longer than 1 char

Currently this fails with an error message e.g.

Hex values only allowed in integer expressions, "$" at: 29:30#2
> 1180 DEFPROC BBCz802Acorn(in$,out$="")

whereas 1180 DEFPROC BBCz802Acorn(i$,o$="") does not generate an error message

dbolli commented 11 months ago

I think this might be due to the string name being a keyword, as

1180 DEFPROC BBCz802Acorn(infile$,outfile$="") does not generate an error message