smallbasic / SmallBASIC

SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, and graphic commands along with structured programming syntax
https://smallbasic.github.io
GNU General Public License v3.0
209 stars 37 forks source link

Load modules via import line #129

Closed chrisws closed 2 years ago

chrisws commented 3 years ago

An import line like this should take the place of the -m command line switch.

import \Users\marka\Downloads\smallbasic_12.23\12_23\nuklear as nk 

see: https://www.syntaxbomb.com/smallbasic/12-23

chrisws commented 2 years ago

This has been implemented. Import lines specifying a path need to be quoted, for example:

import "/usr/local/lib/smallbasic/libraylib.so" as rl
... use raylib functions with "rl" prefix