|
G2Basic 0.1.1 (1e793fc)
BASIC interpreter for microcontrollers
|
Public API of the G2Basic interpreter. More...
Go to the source code of this file.
Functions | |
| void | g2basic_init (void(*print_func)(const char *str)) |
| Reset the interpreter and set the text output callback. | |
| void | g2basic_set_number_output (void(*print_number)(double value)) |
| Replace the formatter for numbers printed by PRINT. | |
| int | g2basic_register_function (const char *name, int arg_count, double(*func_ptr)(double[], int)) |
| Make a C function callable from BASIC expressions. | |
| int | g2basic_parse (const char *input, double *result, const char **error) |
| Process one line of input. | |
Public API of the G2Basic interpreter.
Include this header to embed the interpreter in a host program. The language itself is described in docs/language.md, and integration in docs/embedding.md.