The best way to see how
C BASIC works is look at some of the extension modules I did. Take a look at the
SBT extension module for C BASIC in action.
My direction with C BASIC is to use
libscriba (SB in a DLL) to provide high level functions C natively doesn't support.
If your interested in a C++ BASIC, AIR created a more refined solution called
JADE. AIR has a repo somewhere. Maybe he will chime in and give us a link.