' I'm using SB 0.12.2 on Linux Mint 17.3 xfce 32-bit.
' Note: 'sbasic' 0.12.5 is also installed in the $PATH; And
' 'sbasic' 0.12.6 is also installed after (not in the $PATH).
' The bug is: CONST don't work any more ! (I think that it used to).
(I'm using 32-bit Linux Mint 17.3 and SB 0.12.2)
A lot can be done with strings, since it is Also an array of bytes (excluding the NULL character which C dislikes), but for creating efficient code, both MID and REPLACE functions must work in a reasonable speed (or am I missing something?).
Is there any chance to make MID and REPLACE work faster, OR, adding an efficient new string routines, GETMID and PUTMID, which using ASCII value instead of string-character, and work as fast as an array? for example:
For extending the GRAPHICS abilities, such as drawing Thick lines, arcs, etc, we need to know the current x,y position of STEP, for example:
PSET [STEP] x,y [, color| COLOR color]
[STEP x,y] are internal variables, so we want to have access to them as a new system variables (the same way as we can access XMAX and YMAX):
Then we can create thick line, for example, like this:
' LINE syntax: LINE [STEP] x,y [,|STEP x2,y2] [, color| COLOR color]
Tried compiling the unix variant without graphics against musl, and ran into some fun glibc specific insanity... same goes for midipix which relies on musl. https : //foxi . me/midipix-patches/smallbasic.patch
The following code translated from Euphoria 3.1.1 into SmallBASIC (I've extended the character classes and used it in my own IDE for DOS, and it works just great).
Maybe you (Chris) want to use this logic.
1. keywords.bas (included in syncolor.bas):
REM created: 29/04/2016