skx / gobasic

A BASIC interpreter written in golang.
https://blog.steve.fi/tags/basic/
GNU General Public License v2.0
323 stars 27 forks source link

Really Thanks to this! #115

Closed ghost closed 1 year ago

ghost commented 2 years ago

Very great project. Basic language is lightweight and good to implement in my application! thanks

ghost commented 2 years ago

Can I add function to call system call

skx commented 2 years ago

Very great project.

I'm glad it is useful, I had a lot of fun writing it.

Can I add function to call system call

If you could be more specific I could answer better.

Do you mean something like system( "/bin/ls" ), or something else?

You can register your own built-in functions pretty easily - see the pokeFunction, for example, in the embedded example.