Linux

[IDEA] Syntax Coloring code for SmallBASIC IDE

Forums: 
SmallBASIC implementations: 
I see lots of wrong Syntax Coloring in SmallBASIC IDE.
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 SmallBASIC
REM created: 29/04/2016

Bugs in TRY / CATCH

Forums: 
SmallBASIC implementations: 
I am using Linux 32-bit version.


' Note: TRY / CATCH block is not predictable.

' Question about "Catch err": is err a LOCAL variable? another BUG?


' 1) BUG? didn't catch Math error: -------
Try
x = 1 / 0 ' Division by zero
Catch err
? err
End
Try

Try

Pages

Subscribe to RSS - Linux