08-31-2020, 09:15 PM
That's a possibilty, yes.
ZX Basic already supports different backends (assembly code generatos) as plugins. Frontend (parsers) for different dialect of even languages should be possible to.
Also remember that you can use #define macros (as in C). Subs can be used without parenthesis, and so functions with 1 argument (i.e. SIN(x) and SIN x, but also SUB DrawX(x, y) => DrawX x, y. This allows to expand (somewhat) the language as a temporary workaround.
ZX Basic already supports different backends (assembly code generatos) as plugins. Frontend (parsers) for different dialect of even languages should be possible to.
Also remember that you can use #define macros (as in C). Subs can be used without parenthesis, and so functions with 1 argument (i.e. SIN(x) and SIN x, but also SUB DrawX(x, y) => DrawX x, y. This allows to expand (somewhat) the language as a temporary workaround.