|
Retro Rocket Kernel
BASIC-Powered Operating System
|
Retro Rocket BASIC interpreter. More...
Data Structures | |
| struct | for_state |
| State for a FOR...NEXT loop. More... | |
| struct | ub_var_int |
| An integer variable. More... | |
| struct | ub_var_double |
| A real (double) variable. More... | |
| struct | ub_var_string |
| A string variable. More... | |
| struct | ub_param |
| FN/PROC parameter. More... | |
| struct | ub_proc_fn_def |
| Procedure or function definition Each has a name, a type, a starting line and a parameter list. More... | |
| struct | ub_var_int_array |
| An array of integers. More... | |
| struct | ub_var_string_array |
| An array of strings. More... | |
| struct | ub_var_double_array |
| An array of real (double) More... | |
| struct | ub_var_generic_array |
| A generic array, we can use this to represent any array regardless of its contained type. More... | |
| struct | ub_line_ref |
| Line reference in program. Each program has a hashmap of these so it can find a line number in O(1) time. More... | |
| struct | cpuid_result_t |
| CPUID instruction result. More... | |
| struct | g_cpuid_vendor_t |
| struct | basic_ctx |
| BASIC program context. Every instance of a BASIC program has one of these,* also certain structures such as functions will clone the context and run on the clone until the function completes. Cloned contexts share variables and you should never call basic_destroy() on them! More... | |
| struct | basic_int_fn |
| Builtin integer function. More... | |
| struct | basic_double_fn |
| Builtin real (double) function. More... | |
| struct | basic_str_fn |
| Builtin string function. More... | |
Macros | |
| #define | MAX_STRINGLEN 1024 |
| Maximum length of a string variable. More... | |
| #define | MAX_CALL_STACK_DEPTH 255 |
| Maximum stack depth of GOSUB, PROC, FN. More... | |
| #define | MAX_LOOP_STACK_DEPTH 255 |
| Maximum stack depth of FOR...NEXT. More... | |
| #define | EVAL_LINE 999999998 |
| Special line number where EVAL code is inserted dynamically. More... | |
| #define | EVAL_END_LINE 999999999 |
| RETURN statement after EVAL code. More... | |
| #define | AUX(x) #x |
| #define | STRINGIFY(x) AUX(x) |
| #define | PARAMS_START |
| Begin parsing function parameters. More... | |
| #define | PARAMS_GET_ITEM(type) |
| Get a function parameter of type. More... | |
| #define | PARAMS_END(NAME, returnval) |
| Ends fetching of function parameters, throwing an error if parameters still remain. More... | |
| #define | PARAMS_END_VOID(NAME) |
| #define | accept_or_return(token, ctx) |
Typedefs | |
| typedef int64_t(* | builtin_int_fn) (struct basic_ctx *ctx) |
| Integer function signature. More... | |
| typedef char *(* | builtin_str_fn) (struct basic_ctx *ctx) |
| String function signature. More... | |
| typedef void(* | builtin_double_fn) (struct basic_ctx *ctx, double *res) |
| Real (double) function signature. More... | |
Enumerations | |
| enum | ub_fn_type { FT_FN , FT_PROC } |
| Function or procedure. More... | |
| enum | ub_return_type { RT_MAIN , RT_NONE , RT_STRING , RT_INT , RT_FLOAT } |
| Return type of FN, PROC. More... | |
| enum | parameter_type_t { BIP_STRING , BIP_INT , BIP_DOUBLE , BIP_VARIABLE } |
Functions | |
| bool | valid_int_var (const char *name) |
| bool | valid_string_var (const char *name) |
| bool | valid_double_var (const char *name) |
| int64_t | basic_abs (struct basic_ctx *ctx) |
| int64_t | basic_len (struct basic_ctx *ctx) |
| int64_t | basic_openin (struct basic_ctx *ctx) |
| int64_t | basic_openout (struct basic_ctx *ctx) |
| int64_t | basic_openup (struct basic_ctx *ctx) |
| int64_t | basic_eof (struct basic_ctx *ctx) |
| int64_t | basic_read (struct basic_ctx *ctx) |
| int64_t | basic_instr (struct basic_ctx *ctx) |
| int64_t | basic_asc (struct basic_ctx *ctx) |
| int64_t | basic_getnamecount (struct basic_ctx *ctx) |
| int64_t | basic_getsize (struct basic_ctx *ctx) |
| int64_t | basic_get_text_max_x (struct basic_ctx *ctx) |
| int64_t | basic_get_text_max_y (struct basic_ctx *ctx) |
| int64_t | basic_get_text_cur_x (struct basic_ctx *ctx) |
| int64_t | basic_get_text_cur_y (struct basic_ctx *ctx) |
| int64_t | basic_getproccount (struct basic_ctx *ctx) |
| int64_t | basic_getprocid (struct basic_ctx *ctx) |
| int64_t | basic_getprocparent (struct basic_ctx *ctx) |
| int64_t | basic_getproccpuid (struct basic_ctx *ctx) |
| int64_t | basic_rgb (struct basic_ctx *ctx) |
| int64_t | basic_get_free_mem (struct basic_ctx *ctx) |
| int64_t | basic_get_used_mem (struct basic_ctx *ctx) |
| int64_t | basic_get_total_mem (struct basic_ctx *ctx) |
| int64_t | basic_sockstatus (struct basic_ctx *ctx) |
| int64_t | basic_ctrlkey (struct basic_ctx *ctx) |
| int64_t | basic_shiftkey (struct basic_ctx *ctx) |
| int64_t | basic_altkey (struct basic_ctx *ctx) |
| int64_t | basic_capslock (struct basic_ctx *ctx) |
| int64_t | basic_random (struct basic_ctx *ctx) |
| int64_t | basic_legacy_getlastcpuid (struct basic_ctx *ctx) |
| int64_t | basic_legacy_cpuid (struct basic_ctx *ctx) |
| int64_t | basic_cpuid (struct basic_ctx *ctx) |
| char * | basic_netinfo (struct basic_ctx *ctx) |
| char * | basic_left (struct basic_ctx *ctx) |
| char * | basic_right (struct basic_ctx *ctx) |
| char * | basic_mid (struct basic_ctx *ctx) |
| char * | basic_chr (struct basic_ctx *ctx) |
| char * | basic_readstring (struct basic_ctx *ctx) |
| char * | basic_getname (struct basic_ctx *ctx) |
| char * | basic_getprocname (struct basic_ctx *ctx) |
| char * | basic_dns (struct basic_ctx *ctx) |
| char * | basic_ramdisk_from_device (struct basic_ctx *ctx) |
| char * | basic_ramdisk_from_size (struct basic_ctx *ctx) |
| char * | basic_inkey (struct basic_ctx *ctx) |
| char * | basic_insocket (struct basic_ctx *ctx) |
| char * | basic_upper (struct basic_ctx *ctx) |
| char * | basic_lower (struct basic_ctx *ctx) |
| char * | basic_tokenize (struct basic_ctx *ctx) |
| char * | basic_csd (struct basic_ctx *ctx) |
| char * | basic_cpugetbrand (struct basic_ctx *ctx) |
| char * | basic_cpugetvendor (struct basic_ctx *ctx) |
| char * | basic_intoasc (struct basic_ctx *ctx) |
| void | openin_statement (struct basic_ctx *ctx) |
| void | openup_statement (struct basic_ctx *ctx) |
| void | openout_statement (struct basic_ctx *ctx) |
| void | read_statement (struct basic_ctx *ctx) |
| void | close_statement (struct basic_ctx *ctx) |
| void | eof_statement (struct basic_ctx *ctx) |
| void | delete_statement (struct basic_ctx *ctx) |
| void | mkdir_statement (struct basic_ctx *ctx) |
| void | mount_statement (struct basic_ctx *ctx) |
| void | rmdir_statement (struct basic_ctx *ctx) |
| void | write_statement (struct basic_ctx *ctx) |
| void | chdir_statement (struct basic_ctx *ctx) |
| char * | basic_filetype (struct basic_ctx *ctx) |
| void | basic_sin (struct basic_ctx *ctx, double *res) |
| void | basic_cos (struct basic_ctx *ctx, double *res) |
| void | basic_tan (struct basic_ctx *ctx, double *res) |
| void | basic_pow (struct basic_ctx *ctx, double *res) |
| void | basic_sqrt (struct basic_ctx *ctx, double *res) |
| struct basic_ctx * | basic_init (const char *program, console *cons, uint32_t pid, const char *file, char **error) |
| void | basic_destroy (struct basic_ctx *ctx) |
| void | basic_run (struct basic_ctx *ctx) |
| bool | basic_finished (struct basic_ctx *ctx) |
| bool | jump_linenum (int64_t linenum, struct basic_ctx *ctx) |
| void | line_statement (struct basic_ctx *ctx) |
| void | statement (struct basic_ctx *ctx) |
| bool | accept (int token, struct basic_ctx *ctx) |
| void | basic_parse_fn (struct basic_ctx *ctx) |
| struct basic_ctx * | basic_clone (struct basic_ctx *old) |
| int64_t | basic_get_int_variable (const char *varname, struct basic_ctx *ctx) |
| bool | basic_get_double_variable (const char *var, struct basic_ctx *ctx, double *res) |
| const char * | basic_get_string_variable (const char *var, struct basic_ctx *ctx) |
| void | basic_set_string_variable (const char *var, const char *value, struct basic_ctx *ctx, bool local, bool global) |
| void | basic_set_double_variable (const char *var, const double value, struct basic_ctx *ctx, bool local, bool global) |
| void | basic_set_int_variable (const char *var, int64_t value, struct basic_ctx *ctx, bool local, bool global) |
| ub_return_type | basic_get_numeric_variable (const char *var, struct basic_ctx *ctx, double *res) |
| int64_t | basic_get_numeric_int_variable (const char *var, struct basic_ctx *ctx) |
| void | basic_set_int_array_variable (const char *var, int64_t index, int64_t value, struct basic_ctx *ctx) |
| void | basic_set_string_array_variable (const char *var, int64_t index, const char *value, struct basic_ctx *ctx) |
| void | basic_set_double_array_variable (const char *var, int64_t index, double value, struct basic_ctx *ctx) |
| bool | basic_get_double_array_variable (const char *var, int64_t index, struct basic_ctx *ctx, double *ret) |
| int64_t | basic_get_int_array_variable (const char *var, int64_t index, struct basic_ctx *ctx) |
| const char * | basic_get_string_array_variable (const char *var, int64_t index, struct basic_ctx *ctx) |
| bool | basic_dim_string_array (const char *var, int64_t size, struct basic_ctx *ctx) |
| bool | basic_dim_int_array (const char *var, int64_t size, struct basic_ctx *ctx) |
| bool | basic_dim_double_array (const char *var, int64_t size, struct basic_ctx *ctx) |
| bool | basic_redim_string_array (const char *var, int64_t size, struct basic_ctx *ctx) |
| bool | basic_redim_int_array (const char *var, int64_t size, struct basic_ctx *ctx) |
| bool | basic_redim_double_array (const char *var, int64_t size, struct basic_ctx *ctx) |
| bool | varname_is_int_array_access (struct basic_ctx *ctx, const char *varname) |
| bool | varname_is_string_array_access (struct basic_ctx *ctx, const char *varname) |
| bool | varname_is_double_array_access (struct basic_ctx *ctx, const char *varname) |
| int64_t | arr_variable_index (struct basic_ctx *ctx) |
| void | basic_set_int_array (const char *var, int64_t value, struct basic_ctx *ctx) |
| void | basic_set_string_array (const char *var, const char *value, struct basic_ctx *ctx) |
| void | basic_set_double_array (const char *var, double value, struct basic_ctx *ctx) |
| void | dim_statement (struct basic_ctx *ctx) |
| void | redim_statement (struct basic_ctx *ctx) |
| void | pop_statement (struct basic_ctx *ctx) |
| void | push_statement (struct basic_ctx *ctx) |
| int64_t | arr_expr_set_index (struct basic_ctx *ctx, const char *varname) |
| bool | basic_pop_string_array (const char *var, int64_t pop_pos, struct basic_ctx *ctx) |
| bool | basic_pop_int_array (const char *var, int64_t pop_pos, struct basic_ctx *ctx) |
| bool | basic_pop_double_array (const char *var, int64_t pop_pos, struct basic_ctx *ctx) |
| bool | basic_push_string_array (const char *var, int64_t push_pos, struct basic_ctx *ctx) |
| bool | basic_push_int_array (const char *var, int64_t push_pos, struct basic_ctx *ctx) |
| bool | basic_push_double_array (const char *var, int64_t push_pos, struct basic_ctx *ctx) |
| int64_t | expr (struct basic_ctx *ctx) |
| int64_t | relation (struct basic_ctx *ctx) |
| void | double_expr (struct basic_ctx *ctx, double *res) |
| void | double_relation (struct basic_ctx *ctx, double *res) |
| const char * | str_expr (struct basic_ctx *ctx) |
| int64_t | str_relation (struct basic_ctx *ctx) |
| char * | printable_syntax (struct basic_ctx *ctx) |
| void | library_statement (struct basic_ctx *ctx) |
| void | basic_free_defs (struct basic_ctx *ctx) |
| void | begin_comma_list (struct ub_proc_fn_def *def, struct basic_ctx *ctx) |
| uint8_t | extract_comma_list (struct ub_proc_fn_def *def, struct basic_ctx *ctx) |
| bool | basic_int_variable_exists (const char *var, struct basic_ctx *ctx) |
| bool | basic_string_variable_exists (const char *var, struct basic_ctx *ctx) |
| bool | basic_double_variable_exists (const char *var, struct basic_ctx *ctx) |
| int64_t | basic_val (struct basic_ctx *ctx) |
| int64_t | basic_hexval (struct basic_ctx *ctx) |
| int64_t | basic_octval (struct basic_ctx *ctx) |
| void | basic_realval (struct basic_ctx *ctx, double *res) |
| char * | basic_str (struct basic_ctx *ctx) |
| char * | basic_bool (struct basic_ctx *ctx) |
| void | set_system_variables (struct basic_ctx *ctx, uint32_t pid) |
| void | let_statement (struct basic_ctx *ctx, bool global, bool local) |
| char | basic_builtin_str_fn (const char *fn_name, struct basic_ctx *ctx, char **res) |
| int64_t | basic_eval_int_fn (const char *fn_name, struct basic_ctx *ctx) |
| void | basic_eval_double_fn (const char *fn_name, struct basic_ctx *ctx, double *res) |
| const char * | basic_eval_str_fn (const char *fn_name, struct basic_ctx *ctx) |
| char | basic_builtin_double_fn (const char *fn_name, struct basic_ctx *ctx, double *res) |
| char | basic_builtin_int_fn (const char *fn_name, struct basic_ctx *ctx, int64_t *res) |
| struct ub_proc_fn_def * | basic_find_fn (const char *name, struct basic_ctx *ctx) |
| void | init_local_heap (struct basic_ctx *ctx) |
| void | free_local_heap (struct basic_ctx *ctx) |
| bool | is_builtin_double_fn (const char *fn_name) |
| void | def_statement (struct basic_ctx *ctx) |
| void | proc_statement (struct basic_ctx *ctx) |
| void | eq_statement (struct basic_ctx *ctx) |
| void | retproc_statement (struct basic_ctx *ctx) |
| void | sockwrite_statement (struct basic_ctx *ctx) |
| void | sockclose_statement (struct basic_ctx *ctx) |
| void | connect_statement (struct basic_ctx *ctx) |
| void | sockread_statement (struct basic_ctx *ctx) |
| void | write_cpuid (struct basic_ctx *ctx, int leaf) |
| void | write_cpuidex (struct basic_ctx *ctx, int leaf, int subleaf) |
| int64_t | get_cpuid_reg (struct basic_ctx *ctx, int64_t reg) |
| void | circle_statement (struct basic_ctx *ctx) |
| void | triangle_statement (struct basic_ctx *ctx) |
| void | point_statement (struct basic_ctx *ctx) |
| void | draw_line_statement (struct basic_ctx *ctx) |
| void | gcol_statement (struct basic_ctx *ctx) |
| void | rectangle_statement (struct basic_ctx *ctx) |
| void | input_statement (struct basic_ctx *ctx) |
| void | cls_statement (struct basic_ctx *ctx) |
| void | gotoxy_statement (struct basic_ctx *ctx) |
| void | print_statement (struct basic_ctx *ctx) |
| void | colour_statement (struct basic_ctx *ctx, int tok) |
| void | background_statement (struct basic_ctx *ctx) |
| bool | conditional (struct basic_ctx *ctx) |
| void | else_statement (struct basic_ctx *ctx) |
| void | if_statement (struct basic_ctx *ctx) |
| void | gosub_statement (struct basic_ctx *ctx) |
| void | return_statement (struct basic_ctx *ctx) |
| void | next_statement (struct basic_ctx *ctx) |
| void | for_statement (struct basic_ctx *ctx) |
| void | repeat_statement (struct basic_ctx *ctx) |
| void | until_statement (struct basic_ctx *ctx) |
| void | endif_statement (struct basic_ctx *ctx) |
| void | end_statement (struct basic_ctx *ctx) |
Retro Rocket BASIC interpreter.
Retro Rocket OS Project (C) Craig Edwards 2012.
uBASIC is far more limited than the dialect implemented here. It only allowed variables of one letter in length, and only integer variables, no PROC, FN, or additional functions, no floating point or string ops, no INPUT, just plain mathematical expressions, no ability to isolate execution into a context, and was (and in parts still is) quite badly optimised. It was what it was, a good starting off point.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS `‘AS IS’' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define accept_or_return | ( | token, | |
| ctx | |||
| ) |
| #define AUX | ( | x | ) | #x |
| #define EVAL_END_LINE 999999999 |
RETURN statement after EVAL code.
| #define EVAL_LINE 999999998 |
Special line number where EVAL code is inserted dynamically.
| #define MAX_CALL_STACK_DEPTH 255 |
Maximum stack depth of GOSUB, PROC, FN.
| #define MAX_LOOP_STACK_DEPTH 255 |
Maximum stack depth of FOR...NEXT.
| #define MAX_STRINGLEN 1024 |
Maximum length of a string variable.
| #define PARAMS_END | ( | NAME, | |
| returnval | |||
| ) |
Ends fetching of function parameters, throwing an error if parameters still remain.
| #define PARAMS_END_VOID | ( | NAME | ) |
| #define PARAMS_GET_ITEM | ( | type | ) |
Get a function parameter of type.
| type | Type of function parameter to get, fills one of the variables strval, doubleval or intval. |
| #define PARAMS_START |
Begin parsing function parameters.
| #define STRINGIFY | ( | x | ) | AUX(x) |
| typedef void(* builtin_double_fn) (struct basic_ctx *ctx, double *res) |
Real (double) function signature.
| typedef int64_t(* builtin_int_fn) (struct basic_ctx *ctx) |
Integer function signature.
| typedef char*(* builtin_str_fn) (struct basic_ctx *ctx) |
String function signature.
| enum parameter_type_t |
| enum ub_fn_type |
| enum ub_return_type |
| bool accept | ( | int | token, |
| struct basic_ctx * | ctx | ||
| ) |
| int64_t arr_expr_set_index | ( | struct basic_ctx * | ctx, |
| const char * | varname | ||
| ) |
| int64_t arr_variable_index | ( | struct basic_ctx * | ctx | ) |
| void background_statement | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_abs | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_altkey | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_asc | ( | struct basic_ctx * | ctx | ) |
| char* basic_bool | ( | struct basic_ctx * | ctx | ) |
| char basic_builtin_double_fn | ( | const char * | fn_name, |
| struct basic_ctx * | ctx, | ||
| double * | res | ||
| ) |
| char basic_builtin_int_fn | ( | const char * | fn_name, |
| struct basic_ctx * | ctx, | ||
| int64_t * | res | ||
| ) |
| char basic_builtin_str_fn | ( | const char * | fn_name, |
| struct basic_ctx * | ctx, | ||
| char ** | res | ||
| ) |
| int64_t basic_capslock | ( | struct basic_ctx * | ctx | ) |
| char* basic_chr | ( | struct basic_ctx * | ctx | ) |
| void basic_cos | ( | struct basic_ctx * | ctx, |
| double * | res | ||
| ) |
| char * basic_cpugetbrand | ( | struct basic_ctx * | ctx | ) |
| char * basic_cpugetvendor | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_cpuid | ( | struct basic_ctx * | ctx | ) |
| char* basic_csd | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_ctrlkey | ( | struct basic_ctx * | ctx | ) |
| void basic_destroy | ( | struct basic_ctx * | ctx | ) |
| bool basic_dim_double_array | ( | const char * | var, |
| int64_t | size, | ||
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_dim_int_array | ( | const char * | var, |
| int64_t | size, | ||
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_dim_string_array | ( | const char * | var, |
| int64_t | size, | ||
| struct basic_ctx * | ctx | ||
| ) |
| char * basic_dns | ( | struct basic_ctx * | ctx | ) |
| bool basic_double_variable_exists | ( | const char * | var, |
| struct basic_ctx * | ctx | ||
| ) |
| int64_t basic_eof | ( | struct basic_ctx * | ctx | ) |
| void basic_eval_double_fn | ( | const char * | fn_name, |
| struct basic_ctx * | ctx, | ||
| double * | res | ||
| ) |
| int64_t basic_eval_int_fn | ( | const char * | fn_name, |
| struct basic_ctx * | ctx | ||
| ) |
| const char* basic_eval_str_fn | ( | const char * | fn_name, |
| struct basic_ctx * | ctx | ||
| ) |
| char* basic_filetype | ( | struct basic_ctx * | ctx | ) |
| struct ub_proc_fn_def* basic_find_fn | ( | const char * | name, |
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_finished | ( | struct basic_ctx * | ctx | ) |
| void basic_free_defs | ( | struct basic_ctx * | ctx | ) |
| bool basic_get_double_array_variable | ( | const char * | var, |
| int64_t | index, | ||
| struct basic_ctx * | ctx, | ||
| double * | ret | ||
| ) |
| bool basic_get_double_variable | ( | const char * | var, |
| struct basic_ctx * | ctx, | ||
| double * | res | ||
| ) |
| int64_t basic_get_free_mem | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_get_int_array_variable | ( | const char * | var, |
| int64_t | index, | ||
| struct basic_ctx * | ctx | ||
| ) |
| int64_t basic_get_int_variable | ( | const char * | varname, |
| struct basic_ctx * | ctx | ||
| ) |
| int64_t basic_get_numeric_int_variable | ( | const char * | var, |
| struct basic_ctx * | ctx | ||
| ) |
| ub_return_type basic_get_numeric_variable | ( | const char * | var, |
| struct basic_ctx * | ctx, | ||
| double * | res | ||
| ) |
| const char* basic_get_string_array_variable | ( | const char * | var, |
| int64_t | index, | ||
| struct basic_ctx * | ctx | ||
| ) |
| const char* basic_get_string_variable | ( | const char * | var, |
| struct basic_ctx * | ctx | ||
| ) |
| int64_t basic_get_text_cur_x | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_get_text_cur_y | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_get_text_max_x | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_get_text_max_y | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_get_total_mem | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_get_used_mem | ( | struct basic_ctx * | ctx | ) |
| char* basic_getname | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_getnamecount | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_getproccount | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_getproccpuid | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_getprocid | ( | struct basic_ctx * | ctx | ) |
| char * basic_getprocname | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_getprocparent | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_getsize | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_hexval | ( | struct basic_ctx * | ctx | ) |
| struct basic_ctx* basic_init | ( | const char * | program, |
| console * | cons, | ||
| uint32_t | pid, | ||
| const char * | file, | ||
| char ** | error | ||
| ) |
| char * basic_inkey | ( | struct basic_ctx * | ctx | ) |
| char * basic_insocket | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_instr | ( | struct basic_ctx * | ctx | ) |
| bool basic_int_variable_exists | ( | const char * | var, |
| struct basic_ctx * | ctx | ||
| ) |
| char * basic_intoasc | ( | struct basic_ctx * | ctx | ) |
| char* basic_left | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_legacy_cpuid | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_legacy_getlastcpuid | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_len | ( | struct basic_ctx * | ctx | ) |
| char* basic_lower | ( | struct basic_ctx * | ctx | ) |
| char* basic_mid | ( | struct basic_ctx * | ctx | ) |
| char * basic_netinfo | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_octval | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_openin | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_openout | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_openup | ( | struct basic_ctx * | ctx | ) |
| void basic_parse_fn | ( | struct basic_ctx * | ctx | ) |
| bool basic_pop_double_array | ( | const char * | var, |
| int64_t | pop_pos, | ||
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_pop_int_array | ( | const char * | var, |
| int64_t | pop_pos, | ||
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_pop_string_array | ( | const char * | var, |
| int64_t | pop_pos, | ||
| struct basic_ctx * | ctx | ||
| ) |
| void basic_pow | ( | struct basic_ctx * | ctx, |
| double * | res | ||
| ) |
| bool basic_push_double_array | ( | const char * | var, |
| int64_t | push_pos, | ||
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_push_int_array | ( | const char * | var, |
| int64_t | push_pos, | ||
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_push_string_array | ( | const char * | var, |
| int64_t | push_pos, | ||
| struct basic_ctx * | ctx | ||
| ) |
| char* basic_ramdisk_from_device | ( | struct basic_ctx * | ctx | ) |
| char* basic_ramdisk_from_size | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_random | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_read | ( | struct basic_ctx * | ctx | ) |
| char* basic_readstring | ( | struct basic_ctx * | ctx | ) |
| void basic_realval | ( | struct basic_ctx * | ctx, |
| double * | res | ||
| ) |
| bool basic_redim_double_array | ( | const char * | var, |
| int64_t | size, | ||
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_redim_int_array | ( | const char * | var, |
| int64_t | size, | ||
| struct basic_ctx * | ctx | ||
| ) |
| bool basic_redim_string_array | ( | const char * | var, |
| int64_t | size, | ||
| struct basic_ctx * | ctx | ||
| ) |
| int64_t basic_rgb | ( | struct basic_ctx * | ctx | ) |
| char* basic_right | ( | struct basic_ctx * | ctx | ) |
| void basic_run | ( | struct basic_ctx * | ctx | ) |
| void basic_set_double_array | ( | const char * | var, |
| double | value, | ||
| struct basic_ctx * | ctx | ||
| ) |
| void basic_set_double_array_variable | ( | const char * | var, |
| int64_t | index, | ||
| double | value, | ||
| struct basic_ctx * | ctx | ||
| ) |
| void basic_set_double_variable | ( | const char * | var, |
| const double | value, | ||
| struct basic_ctx * | ctx, | ||
| bool | local, | ||
| bool | global | ||
| ) |
| void basic_set_int_array | ( | const char * | var, |
| int64_t | value, | ||
| struct basic_ctx * | ctx | ||
| ) |
| void basic_set_int_array_variable | ( | const char * | var, |
| int64_t | index, | ||
| int64_t | value, | ||
| struct basic_ctx * | ctx | ||
| ) |
| void basic_set_int_variable | ( | const char * | var, |
| int64_t | value, | ||
| struct basic_ctx * | ctx, | ||
| bool | local, | ||
| bool | global | ||
| ) |
| void basic_set_string_array | ( | const char * | var, |
| const char * | value, | ||
| struct basic_ctx * | ctx | ||
| ) |
| void basic_set_string_array_variable | ( | const char * | var, |
| int64_t | index, | ||
| const char * | value, | ||
| struct basic_ctx * | ctx | ||
| ) |
| void basic_set_string_variable | ( | const char * | var, |
| const char * | value, | ||
| struct basic_ctx * | ctx, | ||
| bool | local, | ||
| bool | global | ||
| ) |
| int64_t basic_shiftkey | ( | struct basic_ctx * | ctx | ) |
| void basic_sin | ( | struct basic_ctx * | ctx, |
| double * | res | ||
| ) |
| int64_t basic_sockstatus | ( | struct basic_ctx * | ctx | ) |
| void basic_sqrt | ( | struct basic_ctx * | ctx, |
| double * | res | ||
| ) |
| char* basic_str | ( | struct basic_ctx * | ctx | ) |
| bool basic_string_variable_exists | ( | const char * | var, |
| struct basic_ctx * | ctx | ||
| ) |
| void basic_tan | ( | struct basic_ctx * | ctx, |
| double * | res | ||
| ) |
| char* basic_tokenize | ( | struct basic_ctx * | ctx | ) |
| char* basic_upper | ( | struct basic_ctx * | ctx | ) |
| int64_t basic_val | ( | struct basic_ctx * | ctx | ) |
| void begin_comma_list | ( | struct ub_proc_fn_def * | def, |
| struct basic_ctx * | ctx | ||
| ) |
| void chdir_statement | ( | struct basic_ctx * | ctx | ) |
| void circle_statement | ( | struct basic_ctx * | ctx | ) |
| void close_statement | ( | struct basic_ctx * | ctx | ) |
| void cls_statement | ( | struct basic_ctx * | ctx | ) |
| void colour_statement | ( | struct basic_ctx * | ctx, |
| int | tok | ||
| ) |
| bool conditional | ( | struct basic_ctx * | ctx | ) |
| void connect_statement | ( | struct basic_ctx * | ctx | ) |
| void def_statement | ( | struct basic_ctx * | ctx | ) |
| void delete_statement | ( | struct basic_ctx * | ctx | ) |
| void dim_statement | ( | struct basic_ctx * | ctx | ) |
| void double_expr | ( | struct basic_ctx * | ctx, |
| double * | res | ||
| ) |
| void double_relation | ( | struct basic_ctx * | ctx, |
| double * | res | ||
| ) |
| void draw_line_statement | ( | struct basic_ctx * | ctx | ) |
| void else_statement | ( | struct basic_ctx * | ctx | ) |
| void end_statement | ( | struct basic_ctx * | ctx | ) |
| void endif_statement | ( | struct basic_ctx * | ctx | ) |
| void eof_statement | ( | struct basic_ctx * | ctx | ) |
| void eq_statement | ( | struct basic_ctx * | ctx | ) |
| int64_t expr | ( | struct basic_ctx * | ctx | ) |
| uint8_t extract_comma_list | ( | struct ub_proc_fn_def * | def, |
| struct basic_ctx * | ctx | ||
| ) |
| void for_statement | ( | struct basic_ctx * | ctx | ) |
| void free_local_heap | ( | struct basic_ctx * | ctx | ) |
| void gcol_statement | ( | struct basic_ctx * | ctx | ) |
| int64_t get_cpuid_reg | ( | struct basic_ctx * | ctx, |
| int64_t | reg | ||
| ) |
| void gosub_statement | ( | struct basic_ctx * | ctx | ) |
| void gotoxy_statement | ( | struct basic_ctx * | ctx | ) |
| void if_statement | ( | struct basic_ctx * | ctx | ) |
| void init_local_heap | ( | struct basic_ctx * | ctx | ) |
| void input_statement | ( | struct basic_ctx * | ctx | ) |
| bool is_builtin_double_fn | ( | const char * | fn_name | ) |
| bool jump_linenum | ( | int64_t | linenum, |
| struct basic_ctx * | ctx | ||
| ) |
| void let_statement | ( | struct basic_ctx * | ctx, |
| bool | global, | ||
| bool | local | ||
| ) |
| void library_statement | ( | struct basic_ctx * | ctx | ) |
| void line_statement | ( | struct basic_ctx * | ctx | ) |
| void mkdir_statement | ( | struct basic_ctx * | ctx | ) |
| void mount_statement | ( | struct basic_ctx * | ctx | ) |
| void next_statement | ( | struct basic_ctx * | ctx | ) |
| void openin_statement | ( | struct basic_ctx * | ctx | ) |
| void openout_statement | ( | struct basic_ctx * | ctx | ) |
| void openup_statement | ( | struct basic_ctx * | ctx | ) |
| void point_statement | ( | struct basic_ctx * | ctx | ) |
| void pop_statement | ( | struct basic_ctx * | ctx | ) |
| void print_statement | ( | struct basic_ctx * | ctx | ) |
| char* printable_syntax | ( | struct basic_ctx * | ctx | ) |
| void proc_statement | ( | struct basic_ctx * | ctx | ) |
| void push_statement | ( | struct basic_ctx * | ctx | ) |
| void read_statement | ( | struct basic_ctx * | ctx | ) |
| void rectangle_statement | ( | struct basic_ctx * | ctx | ) |
| void redim_statement | ( | struct basic_ctx * | ctx | ) |
| int64_t relation | ( | struct basic_ctx * | ctx | ) |
| void repeat_statement | ( | struct basic_ctx * | ctx | ) |
| void retproc_statement | ( | struct basic_ctx * | ctx | ) |
| void return_statement | ( | struct basic_ctx * | ctx | ) |
| void rmdir_statement | ( | struct basic_ctx * | ctx | ) |
| void set_system_variables | ( | struct basic_ctx * | ctx, |
| uint32_t | pid | ||
| ) |
| void sockclose_statement | ( | struct basic_ctx * | ctx | ) |
| void sockread_statement | ( | struct basic_ctx * | ctx | ) |
| void sockwrite_statement | ( | struct basic_ctx * | ctx | ) |
| void statement | ( | struct basic_ctx * | ctx | ) |
| const char* str_expr | ( | struct basic_ctx * | ctx | ) |
| int64_t str_relation | ( | struct basic_ctx * | ctx | ) |
| void triangle_statement | ( | struct basic_ctx * | ctx | ) |
| void until_statement | ( | struct basic_ctx * | ctx | ) |
| bool valid_double_var | ( | const char * | name | ) |
| bool valid_int_var | ( | const char * | name | ) |
| bool valid_string_var | ( | const char * | name | ) |
| bool varname_is_double_array_access | ( | struct basic_ctx * | ctx, |
| const char * | varname | ||
| ) |
| bool varname_is_int_array_access | ( | struct basic_ctx * | ctx, |
| const char * | varname | ||
| ) |
| bool varname_is_string_array_access | ( | struct basic_ctx * | ctx, |
| const char * | varname | ||
| ) |
| void write_cpuid | ( | struct basic_ctx * | ctx, |
| int | leaf | ||
| ) |
| void write_cpuidex | ( | struct basic_ctx * | ctx, |
| int | leaf, | ||
| int | subleaf | ||
| ) |
| void write_statement | ( | struct basic_ctx * | ctx | ) |