ELinks 0.16.1.1
scanner_info Struct Reference

#include <scanner.h>

Collaboration diagram for scanner_info:

Data Fields

const struct scanner_string_mappingmappings
 Table containing how to map strings to token types.
const struct scan_table_infoscan_table_info
 Information for how to initialize the scanner table.
struct scanner_token *(* scan )(struct scanner *scanner)
 Fills the scanner with tokens.
int scan_table [SCAN_TABLE_SIZE]
 The scanner table.
unsigned int initialized:1
 Has the scanner info been initialized?

Field Documentation

◆ initialized

unsigned int scanner_info::initialized

Has the scanner info been initialized?

◆ mappings

const struct scanner_string_mapping* scanner_info::mappings

Table containing how to map strings to token types.

◆ scan

struct scanner_token *(* scanner_info::scan) (struct scanner *scanner)

Fills the scanner with tokens.

Already scanned tokens which have not been requested remain and are moved to the start of the scanners token table.

Returns
the current token or NULL if there are none.

◆ scan_table

int scanner_info::scan_table[SCAN_TABLE_SIZE]

The scanner table.

Contains bitmaps for the various characters groups. Idea sync'ed from mozilla browser.

◆ scan_table_info

const struct scan_table_info* scanner_info::scan_table_info

Information for how to initialize the scanner table.


The documentation for this struct was generated from the following file: