Go to the documentation of this file.
25 #define TOKOPENPAR 1u // "("
26 #define TOKCLOSEPAR 2u // ")"
27 #define TOKOPENBRACK 3u // "["
28 #define TOKCLOSEBRACK 4u // "]"
29 #define TOKDOT 5u // "."
30 #define TOKDONTCARE 6u // "_"
31 #define TOKQUOTE 7u // "'"
32 #define TOKBACKQUOTE 8u // "`"
33 #define TOKCOMMAAT 9u // ",@"
34 #define TOKCOMMA 10u // ","
35 #define TOKMATCHANY 11u // "?"
36 #define TOKOPENCURL 12u // "{"
37 #define TOKCLOSECURL 13u // "}"
38 #define TOKCONSTSTART 14u // "@const-start"
39 #define TOKCONSTEND 15u // "@const-end"
40 #define TOKCONSTSYMSTR 16u // "@const-symbol-strings"
42 #define TOKTYPEBYTE 100u
45 #define TOKTYPEI32 103u
46 #define TOKTYPEU32 104u
47 #define TOKTYPEI64 105u
48 #define TOKTYPEU64 106u
49 #define TOKTYPEF32 107u
50 #define TOKTYPEF64 108u
53 #define TOKENIZER_ERROR 1024u
54 #define TOKENIZER_END 2048u
64 #define TOKENIZER_NO_TOKEN 0
65 #define TOKENIZER_NEED_MORE -1
66 #define TOKENIZER_STRING_ERROR -2
67 #define TOKENIZER_CHAR_ERROR -3
68 #define TOKENIZER_SYMBOL_ERROR -4
70 #define TOKENIZER_MAX_SYMBOL_AND_STRING_LENGTH 256
uint64_t value
Definition: tokpar.h:94
int tok_string(lbm_char_channel_t *chan, unsigned int *string_len)
Definition: tokpar.c:212
uint32_t type
Definition: tokpar.h:93
bool negative
Definition: tokpar.h:95
#define TOKENIZER_MAX_SYMBOL_AND_STRING_LENGTH
Definition: tokpar.h:70
uint32_t type
Definition: tokpar.h:99
unsigned int column
Definition: tokpar.h:89
unsigned int row
Definition: tokpar.h:88
int tok_symbol(lbm_char_channel_t *chan)
Definition: tokpar.c:169
Definition: lbm_channel.h:68
int tok_integer(lbm_char_channel_t *chan, token_int *result)
Definition: tokpar.c:438
double value
Definition: tokpar.h:100
struct token_float token_float
int tok_double(lbm_char_channel_t *chan, token_float *result)
Definition: tokpar.c:295
int tok_char(lbm_char_channel_t *chan, char *res)
Definition: tokpar.c:252
int tok_syntax(lbm_char_channel_t *chan, uint32_t *res)
Definition: tokpar.c:132
bool tok_clean_whitespace(lbm_char_channel_t *chan)
Definition: tokpar.c:389
const char * str
Definition: tokpar.h:86
bool negative
Definition: tokpar.h:101
char tokpar_sym_str[TOKENIZER_MAX_SYMBOL_AND_STRING_LENGTH]
Definition: tokpar.c:31
unsigned int pos
Definition: tokpar.h:87