neilsf / XC-BASIC

A compiling BASIC dialect for the Commodore-64
https://xc-basic.net/
MIT License
74 stars 15 forks source link

Change white space rules #98

Closed neilsf closed 4 years ago

neilsf commented 4 years ago

As of the current version (v2.3.01) the parser ignores white space with a very few exceptions. This is obsolete and leads to confusions, especially confusions of identifiers and keywords. Identifier naming restrictions could be more allowing if white space usage was stricter.

The following statement:

letter = 1

is now interpreted as LET ter = 1. In a future version however it should be interpreted as LET letter = 1.

This is going to break backward compatibility.