26 #define TOKCLOSEPAR 2u
27 #define TOKOPENBRACK 3u
28 #define TOKCLOSEBRACK 4u
30 #define TOKDONTCARE 6u
32 #define TOKBACKQUOTE 8u
35 #define TOKMATCHANY 11u
36 #define TOKOPENCURL 12u
37 #define TOKCLOSECURL 13u
38 #define TOKCONSTSTART 14u
39 #define TOKCONSTEND 15u
40 #define TOKOPENARRAY 16u
41 #define TOKCLOSEARRAY 17u
43 #define TOKTYPEBYTE 100u
46 #define TOKTYPEI32 103u
47 #define TOKTYPEU32 104u
48 #define TOKTYPEI64 105u
49 #define TOKTYPEU64 106u
50 #define TOKTYPEF32 107u
51 #define TOKTYPEF64 108u
54 #define TOKENIZER_ERROR 1024u
55 #define TOKENIZER_END 2048u
65 #define TOKENIZER_NO_TOKEN 0
66 #define TOKENIZER_NEED_MORE -1
67 #define TOKENIZER_STRING_ERROR -2
68 #define TOKENIZER_CHAR_ERROR -3
69 #define TOKENIZER_SYMBOL_ERROR -4
71 #define TOKENIZER_MAX_SYMBOL_AND_STRING_LENGTH 256
Definition: lbm_channel.h:69
unsigned int pos
Definition: tokpar.h:88
const char * str
Definition: tokpar.h:87
unsigned int column
Definition: tokpar.h:90
unsigned int row
Definition: tokpar.h:89
uint32_t type
Definition: tokpar.h:100
double value
Definition: tokpar.h:101
bool negative
Definition: tokpar.h:102
uint32_t type
Definition: tokpar.h:94
bool negative
Definition: tokpar.h:96
uint64_t value
Definition: tokpar.h:95
int tok_char(lbm_char_channel_t *chan, char *res)
Definition: tokpar.c:253
int tok_double(lbm_char_channel_t *chan, token_float *result)
Definition: tokpar.c:295
#define TOKENIZER_MAX_SYMBOL_AND_STRING_LENGTH
Definition: tokpar.h:71
struct token_float token_float
char tokpar_sym_str[TOKENIZER_MAX_SYMBOL_AND_STRING_LENGTH+1]
Definition: tokpar.c:32
int tok_string(lbm_char_channel_t *chan, unsigned int *string_len)
Definition: tokpar.c:204
int tok_syntax(lbm_char_channel_t *chan, uint32_t *res)
Definition: tokpar.c:135
int tok_symbol(lbm_char_channel_t *chan)
Definition: tokpar.c:172
int tok_integer(lbm_char_channel_t *chan, token_int *result)
Definition: tokpar.c:435
bool tok_clean_whitespace(lbm_char_channel_t *chan)
Definition: tokpar.c:386