|
Z / libzlang 0.29.0
C99 runtime library and the Zlang 0.29 source-to-source compiler
|
Token definitions and the Zlang lexer API. More...
#include "zlang/compiler/ast.h"#include "zlang/compiler/diagnostics.h"#include <stdbool.h>#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | zlang_token_t |
| struct | zlang_lexer_t |
Typedefs | |
| typedef enum zlang_token_kind_t | zlang_token_kind_t |
| typedef struct zlang_token_t | zlang_token_t |
| typedef struct zlang_lexer_t | zlang_lexer_t |
Functions | |
| void | zlang_lexer_init (zlang_lexer_t *lexer, const char *source, char *scratch, size_t scratch_capacity, zlang_comment_t *comments, size_t comment_capacity) |
| bool | zlang_lex (zlang_lexer_t *lexer, zlang_token_t *tokens, size_t token_capacity, size_t *token_count, zlang_diagnostics_t *diagnostics) |
| bool | zlang_token_is (const zlang_token_t *token, const char *text) |
Token definitions and the Zlang lexer API.
| typedef struct zlang_lexer_t zlang_lexer_t |
| typedef enum zlang_token_kind_t zlang_token_kind_t |
| typedef struct zlang_token_t zlang_token_t |
| enum zlang_token_kind_t |
| bool zlang_lex | ( | zlang_lexer_t * | lexer, |
| zlang_token_t * | tokens, | ||
| size_t | token_capacity, | ||
| size_t * | token_count, | ||
| zlang_diagnostics_t * | diagnostics ) |
| void zlang_lexer_init | ( | zlang_lexer_t * | lexer, |
| const char * | source, | ||
| char * | scratch, | ||
| size_t | scratch_capacity, | ||
| zlang_comment_t * | comments, | ||
| size_t | comment_capacity ) |
| bool zlang_token_is | ( | const zlang_token_t * | token, |
| const char * | text ) |