my_basic
my_basic copied to clipboard
A lightweight BASIC interpreter written in standard C in dual files. Aims to be embeddable, extendable and portable.
# Summary This pull request introduces a CodeQL workflow to enhance the security analysis of this repository. # What is CodeQL CodeQL is a static analysis tool that helps identify...
Hello :) While compiling for ESp32s3 in the VSC+platformio environment, I received the following error: my_basic.c:370:15: error: conflicting types for '_lock_t' it turned out that in the file belonging to...
Run this simple script **10000** times and you'll end up eating your memory. ``` DEF TEST() PRINT "WHATEVER"; ENDDEF PRINT "HELLO WORLD"; ``` Runtime logs: ``` 22:14:00.174 -> Exe /last.bas...
Error when compiling with undefined MB_ENABLE_STACK_TRACE ``` my_basic.c:14689:14: error: 'l' undeclared (first use in this function) mb_unrefvar(l); ``` ``` /* Get stack frame count of a MY-BASIC environment */ int...
How do I set the max possible amount of memory with arrays? Doing something like this I get `Out of Memory` errors: ``` Dim a(200,200) ``` setting `_HT_ARRAY_SIZE_DEFAULT` to MID...
Trying out the [unicode example](https://github.com/paladin-t/my_basic/wiki/Using-Unicode) in the Wiki, I get this output on Windows 10: ``` , 5 ```
I thought it would be more consistent to just use `REM` and `ENDREM` as comment blocks instead of '[ and '] which looks more like arrays. The syntax already has...
As demonstrated in the below sample: ```basic class foo var a = 1 def inc() a = a + 1 enddef Endclass class bar(foo) var class = "test" Endclass boo...
Is there a way to modify and use keywords with spaces, like: `END DEF` instead of `ENDDEF` or `END CLASS` instead of `ENDCLASS`
I have made a svg version of the workflow:  I normally wanted to PR this but couldn't find where I can edit https://github.com/paladin-t/my_basic/wiki/img/workflow.png