07-07-2009, 07:41 PM
Thanks for the fast reply, boriel!
The DIM issue isn't such a big deal, actually - it would be fairly easy for me to alter the source to begin arrays from zero, but it was even more trivial to make each array "1 bigger" (if a little wasteful on memory). :-)
A question, if I may:
One of the things that tripped my listing up was that the compiler doesn't distinguish between a variable called 'a' and a variable called 'a$'. The listing I was trying to compile used 'a' to store an integer and 'a$' to store a String, but the compiler treated both as the same variable, declared it as an Integer and then ran into errors trying to assign it a String value. Easy to fix from my point of view with a little search and replace, but is that expected behaviour?
I've been very surprised at how quickly I managed to get the listing (almost) working - an hour's worth of fiddling and it was compiling and mostly running, which is definitely the best experience I've ever had with a Spectrum BASIC compiler. Many thanks for your excellent work!
The DIM issue isn't such a big deal, actually - it would be fairly easy for me to alter the source to begin arrays from zero, but it was even more trivial to make each array "1 bigger" (if a little wasteful on memory). :-)
A question, if I may:
One of the things that tripped my listing up was that the compiler doesn't distinguish between a variable called 'a' and a variable called 'a$'. The listing I was trying to compile used 'a' to store an integer and 'a$' to store a String, but the compiler treated both as the same variable, declared it as an Integer and then ran into errors trying to assign it a String value. Easy to fix from my point of view with a little search and replace, but is that expected behaviour?
I've been very surprised at how quickly I managed to get the listing (almost) working - an hour's worth of fiddling and it was compiling and mostly running, which is definitely the best experience I've ever had with a Spectrum BASIC compiler. Many thanks for your excellent work!