Go to the source code of this file.
◆ TOKBACKQUOTE
◆ TOKCLOSEARRAY
#define TOKCLOSEARRAY 17u |
◆ TOKCLOSEBRACK
◆ TOKCLOSECURL
◆ TOKCLOSEPAR
◆ TOKCOMMA
◆ TOKCOMMAAT
◆ TOKCONSTEND
◆ TOKCONSTSTART
#define TOKCONSTSTART 14u |
◆ TOKDONTCARE
◆ TOKDOT
◆ TOKENIZER_CHAR_ERROR
#define TOKENIZER_CHAR_ERROR -3 |
◆ TOKENIZER_END
#define TOKENIZER_END 2048u |
◆ TOKENIZER_ERROR
#define TOKENIZER_ERROR 1024u |
◆ TOKENIZER_MAX_SYMBOL_AND_STRING_LENGTH
#define TOKENIZER_MAX_SYMBOL_AND_STRING_LENGTH 256 |
◆ TOKENIZER_NEED_MORE
#define TOKENIZER_NEED_MORE -1 |
◆ TOKENIZER_NO_TOKEN
#define TOKENIZER_NO_TOKEN 0 |
◆ TOKENIZER_STRING_ERROR
#define TOKENIZER_STRING_ERROR -2 |
◆ TOKENIZER_SYMBOL_ERROR
#define TOKENIZER_SYMBOL_ERROR -4 |
◆ TOKMATCHANY
◆ TOKOPENARRAY
◆ TOKOPENBRACK
◆ TOKOPENCURL
◆ TOKOPENPAR
◆ TOKQUOTE
◆ TOKTYPEBYTE
◆ TOKTYPEF32
◆ TOKTYPEF64
◆ TOKTYPEI
◆ TOKTYPEI32
◆ TOKTYPEI64
◆ TOKTYPEU
◆ TOKTYPEU32
◆ TOKTYPEU64
◆ token_float
◆ tok_char()
Attempt to read a character from the character stream.
- Parameters
-
chan | Character channel to read characters from. |
res | Result character if successful. |
- Returns
- A positive value indicating number of characters used if successful. Otherwise a negative status indicator.
◆ tok_clean_whitespace()
Clean off whitespace from head of the character stream
- Returns
- True if whitespace could be cleaned. False if stream has no more available characters at the moment.
◆ tok_double()
Attempt to read a floating point number from the character stream.
- Parameters
-
chan | Character channel to read characters from. |
res | Result token_float-object if successful. |
- Returns
- A positive value indicating number of characters used if successful. Otherwise a negative status indicator.
◆ tok_integer()
Attempt to read an integer value from the character stream.
- Parameters
-
chan | Character channel to read characters from. |
res | Result token_int-object if successful. |
- Returns
- A positive value indicating number of characters used if successful. Otherwise a negative status indicator.
◆ tok_string()
Attempt to read a string from the character stream. If successful the resulting string is found in tokpar_sym_str.
- Parameters
-
chan | Character channel to read characters from. |
- Returns
- A positive value indicating number of characters used if successful. Otherwise a negative status indicator.
◆ tok_symbol()
Attempt to read a symbol from the character stream. If successful the resulting symbol string is found in tokpar_sym_str.
- Parameters
-
chan | Character channel to read characters from. |
- Returns
- A positive value indicating number of characters used if successful. Otherwise a negative status indicator.
◆ tok_syntax()
Attempt to read a "syntax" token from the character stream. A "syntax" token is for example '(', ')', '@' and so on.
- Parameters
-
chan | Character channel to read characters from. |
res | Result token identifier. |
- Returns
- A positive value indicating number of characters used if successful. Otherwise a negative status indicator.
◆ tokpar_sym_str