ELinks 0.18.0
dom_scanner_token Struct Reference

DOM scanner token. More...

#include <scanner.h>

Collaboration diagram for dom_scanner_token:

Data Fields

int type
 The type the token.
int precedence
 Some precedence value.
unsigned int lineno
 The line number; used for error tokens.
struct dom_string string
 The start of the token string and the token length.

Detailed Description

DOM scanner token.

This struct describes one scanner state. There are two kinds of tokens: char and non-char tokens. Char tokens contains only one char and simply have their char value as type. They are tokens having special control meaning in the code, like ':', ';', '{', '}' and '*'. Non-char tokens have one or more chars and contain stuff like number or indentifier strings.

Field Documentation

◆ lineno

unsigned int dom_scanner_token::lineno

The line number; used for error tokens.

◆ precedence

int dom_scanner_token::precedence

Some precedence value.

◆ string

struct dom_string dom_scanner_token::string

The start of the token string and the token length.

◆ type

int dom_scanner_token::type

The type the token.


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