|
Cthulhu
0.2.10
Cthulhu compiler collection
|

Functions | |
| CT_INTEROP_API void | flex_action (INOUT_NOTNULL where_t *where, const char *text) |
| tracks the current source position More... | |
| CT_INTEROP_API int | flex_input (INOUT_NOTNULL scan_t *scan, STA_WRITES(size) char *out, int size) |
| retrevies more input for flex More... | |
| CT_INTEROP_API void | flex_init (OUT_NOTNULL where_t *where) |
| initialize source location tracking More... | |
| CT_INTEROP_API void | flex_update (INOUT_NOTNULL where_t *where, STA_READS(steps) const where_t *offsets, int steps) |
| update the source location More... | |
| #define | BISON_ARENA(x) scan_get_arena(x) |
| get the arena of a scanner More... | |
| #define | FLEX_MEMORY(prefix) |
| route memory for flex and bison though cthulhu allocators More... | |
| #define BISON_ARENA | ( | x | ) | scan_get_arena(x) |
get the arena of a scanner
| #define FLEX_MEMORY | ( | prefix | ) |
route memory for flex and bison though cthulhu allocators
| prefix | the prefix assigned to flex and bison functions |
| CT_INTEROP_API void flex_action | ( | INOUT_NOTNULL where_t * | where, |
| const char * | text | ||
| ) |
tracks the current source position
| where | a pointer to the current location |
| text | current source text |
| CT_INTEROP_API void flex_init | ( | OUT_NOTNULL where_t * | where | ) |
initialize source location tracking
| where | the source location to initialize |
| CT_INTEROP_API int flex_input | ( | INOUT_NOTNULL scan_t * | scan, |
| STA_WRITES(size) char * | out, | ||
| int | size | ||
| ) |
retrevies more input for flex
| scan | the source scanner |
| out | output buffer to write to |
| size | total number of characters to write |
| CT_INTEROP_API void flex_update | ( | INOUT_NOTNULL where_t * | where, |
| STA_READS(steps) const where_t * | offsets, | ||
| int | steps | ||
| ) |
update the source location
| where | the source location to update |
| offsets | the source location offsets |
| steps | the number of steps to update by |