Kiwi Engine
VM for interpreter
|
Define KEReservedWordTable class. More...
#include <Coconut/Coconut.h>
Go to the source code of this file.
Data Structures | |
struct | KEReservedWord |
struct | KEReservedWordTable |
Reserved word table. More... | |
Functions | |
struct KEReservedWordTable | KEMakeReservedWordTable (struct CNResource *resource) |
Make empty reserved word table. More... | |
void | KEDestroyReservedWordTable (struct KEReservedWordTable *dst) |
Release the resource for reserved word table. More... | |
void | KEAddReservedWordsToTable (struct KEReservedWordTable *dst, unsigned int wordnum, const struct KEReservedWord *words) |
Add array of reserved words into table. More... | |
CNBoolean | KESearchReservedWordInTable (int *rid, const struct KEReservedWordTable *table, const struct CNFixedString *ident) |
Search reserved word in the table. More... | |
void | KEPrintReservedWordTable (FILE *outfp, const struct KEReservedWordTable *src) |
Print reserved words in the reserveed word table. More... | |
Define KEReservedWordTable class.
void KEAddReservedWordsToTable | ( | struct KEReservedWordTable * | dst, |
unsigned int | wordnum, | ||
const struct KEReservedWord * | words | ||
) |
Add array of reserved words into table.
dst | Destination reserved word table |
wordnum | Number of source reserved words |
words | Source array of reserved words |
void KEDestroyReservedWordTable | ( | struct KEReservedWordTable * | dst | ) |
Release the resource for reserved word table.
dst | Destination table |
struct KEReservedWordTable KEMakeReservedWordTable | ( | struct CNResource * | resource | ) |
Make empty reserved word table.
resource | Resource to allocate the table |
void KEPrintReservedWordTable | ( | FILE * | outfp, |
const struct KEReservedWordTable * | src | ||
) |
Print reserved words in the reserveed word table.
outfp | Output file stream |
src | Source reserved word table |
CNBoolean KESearchReservedWordInTable | ( | int * | rid, |
const struct KEReservedWordTable * | table, | ||
const struct CNFixedString * | ident | ||
) |
Search reserved word in the table.
True | Source word is reserved word |
False | Source word is NOT reserved word |
rid | Register id for the source word. This value is set when the return value is true. |
table | Source reserved word table |
ident | Identifier to search the table |