ELinks 0.16.1.1
|
Data Structures | |
struct | scanner_token |
The struct scanner_token describes one scanner state. More... | |
union | scan_table_data |
struct | scan_table_info |
struct | scanner_string_mapping |
struct | scanner_info |
struct | scanner |
The struct scanner describes the current state of the scanner. More... |
Macros | |
#define | scanner_token_strlcasecmp(token, str, len) |
Compare the string of token with str. | |
#define | scanner_token_contains(token, str) |
Also compares the token string but using a "static" string. | |
#define | SCAN_TABLE_SIZE 256 |
#define | SCAN_TABLE_INFO(type, data1, data2, bits) |
#define | SCAN_TABLE_RANGE(from, to, bits) |
#define | SCAN_TABLE_STRING(str, bits) |
#define | SCAN_TABLE_END SCAN_TABLE_INFO(SCAN_END, 0, 0, 0) |
#define | SCANNER_TOKENS 10 |
The number of tokens in the scanners token table: At best it should be big enough to contain properties with space separated values and function calls with up to 3 variables like rgb(). |
Enumerations | |
enum | scan_type { SCAN_RANGE , SCAN_STRING , SCAN_END } |
Functions | |
static struct scanner_token * | begin_token_scanning (struct scanner *scanner) |
static struct scanner_token * | end_token_scanning (struct scanner *scanner, struct scanner_token *end) |
#define SCAN_TABLE_END SCAN_TABLE_INFO(SCAN_END, 0, 0, 0) |
#define SCAN_TABLE_INFO | ( | type, | |
data1, | |||
data2, | |||
bits ) |
#define SCAN_TABLE_RANGE | ( | from, | |
to, | |||
bits ) |
#define SCAN_TABLE_SIZE 256 |
#define SCAN_TABLE_STRING | ( | str, | |
bits ) |
#define scanner_token_contains | ( | token, | |
str ) |
Also compares the token string but using a "static" string.
#define scanner_token_strlcasecmp | ( | token, | |
str, | |||
len ) |
Compare the string of token with str.
#define SCANNER_TOKENS 10 |
The number of tokens in the scanners token table: At best it should be big enough to contain properties with space separated values and function calls with up to 3 variables like rgb().
At worst it should be no less than 2 in order to be able to peek at the next token in the scanner.
enum scan_type |
|
inlinestatic |
|
inlinestatic |