Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spectrum BASIC Dialects
#1
Support for common dialects can be implemented.
In the librares (modules).

48 BASIC
128 BASIC (Where is PLAY & SPECTRUM ?)
+3 BASIC
TR-DOS

PRO-DOS
Laser BASIC
Mega BASIC
Beta BASIC
Softek IS
Softek FP


In many cases it is not necessary to follow a strict syntax such as "REM S, A, x, y" (from Softek IS)". And use more correct syntax. But the compiler must understand all synonyms and correct them by prompting the programmer. In turn, the programmer can choose any synonyms, including leaving it as it is.
It is not necessary to use the words LET and SUB in the program, but it is advisable when declaring ...
It is permissible to use signs that an object belongs to a particular type (using letters !,%, $ Or color), as well as an statement to a particular library (to understand where it came from).
The programmer can add his own new statements, functions, libraries, synonyms (i.e. own syntax). But all of them, of course, must be described by the programmer.
Reply
#2
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.
Reply
#3
And the NextBASIC Smile
Reply
#4
Consider using NextBuild which is an IDE + ZX Basic oriented to ZX Next development, created by @em00k.
See here: http://zxbasic.uk/nextbuild/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)