Flag-driven tokenizer: turns a byte stream into a sequence of typed tokens, one sys_scanner_next() call at a time. More...


Go to the source code of this file.
Data Structures | |
| struct | sys_scanner_t |
| Scanner state: reads a stream into a sequence of typed tokens. More... | |
Typedefs | |
| typedef struct sys_scanner_t | sys_scanner_t |
| Scanner state: reads a stream into a sequence of typed tokens. More... | |
Functions | |
| sys_scanner_t | sys_scanner_init (sys_iostream_t *stream, sys_scanner_flags_t flags) |
| Initialize a scanner over a stream. More... | |
| bool | sys_scanner_next (sys_scanner_t *it) |
| Advance to the next token. More... | |
| size_t | sys_scanner_token (sys_scanner_t *it, char *buf, size_t cap) |
| Read the current token's text. More... | |
Flag-driven tokenizer: turns a byte stream into a sequence of typed tokens, one sys_scanner_next() call at a time.
Definition in file scanner.h.