Go to the source code of this file.
◆ print()
| void print |
( |
Environment * | _environment, |
|
|
char * | _value, |
|
|
int | _new_line, |
|
|
int | _raw ) |
Emit code for PRINT... instruction.
- Parameters
-
| _environment | Current calling environment |
| _value | Value to print |
| _new_line | 1 if a new line must be added at the end |
Definition at line 141 of file print.c.
◆ print_newline()
Emit code for print a single newline.
- Parameters
-
| _environment | Current calling environment |
Definition at line 422 of file print.c.
◆ print_question_mark()
Emit code for print a single question mark.
- Parameters
-
| _environment | Current calling environment |
Definition at line 413 of file print.c.
◆ print_tab()
| void print_tab |
( |
Environment * | _environment, |
|
|
int | _new_line ) |
Emit code for print a single TAB.
- Parameters
-
| _environment | Current calling environment |
| _new_line | 1 if a new line must be added at the end |
Definition at line 398 of file print.c.
◆ DATATYPE_AS_STRING
| char DATATYPE_AS_STRING[][16] |
|
extern |
Emit code for BEGIN COPPER.
This variable defines as an array of constant pointers. Each element of the array represents the "human" name of a ugBASIC's data type. The main reason is to map an IDto a readable string. If ugBASIC encounters an error, you don't want it to print "Error in type 2," but rather "Error in type
FLOAT.". Note that it's vital that the order of strings in the array exactly reflects the order of the IDs in your enum. If you move an element to one, you must also move it to the other, otherwise the mapping will be staggered. Often, a final NULL or UNKNOWN string is added to handle error cases or to allow you to loop through the array without knowing its size beforehand.
Definition at line 133 of file _infrastructure.c.