ELinks 0.16.1.1
sgml_parser Struct Reference

The SGML parser. More...

#include <parser.h>

Collaboration diagram for sgml_parser:

Data Fields

enum sgml_parser_type type
 Stream or tree.
unsigned int flags
 Flags that control the behaviour.
struct sgml_infoinfo
 Backend dependent info.
struct dom_string uri
 The URI of the DOM document.
struct dom_noderoot
 The document root node.
enum dom_code code
 The latest (error) code.
sgml_error_T error_func
 Called for detected errors.
struct dom_stack stack
 A stack for tracking parsed nodes.
struct dom_stack parsing
 Used for tracking parsing states.

Detailed Description

The SGML parser.

This struct hold info used while parsing SGML data.

Note
The only variable the user should set is sgml_parser.error_func.

Field Documentation

◆ code

enum dom_code sgml_parser::code

The latest (error) code.

◆ error_func

sgml_error_T sgml_parser::error_func

Called for detected errors.

◆ flags

unsigned int sgml_parser::flags

Flags that control the behaviour.

◆ info

struct sgml_info* sgml_parser::info

Backend dependent info.

◆ parsing

struct dom_stack sgml_parser::parsing

Used for tracking parsing states.

◆ root

struct dom_node* sgml_parser::root

The document root node.

◆ stack

struct dom_stack sgml_parser::stack

A stack for tracking parsed nodes.

◆ type

enum sgml_parser_type sgml_parser::type

Stream or tree.

◆ uri

struct dom_string sgml_parser::uri

The URI of the DOM document.


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