Descent XML
An XML Parser Helper Library
Loading...
Searching...
No Matches
Data Structures | Functions
lex.h File Reference
#include <wchar.h>
#include <wctype.h>
#include <libadt.h>
#include "classifier.h"
Include dependency graph for lex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  descent_xml_lex
 Represents a single token. More...
 

Functions

struct descent_xml_lex descent_xml_lex_init (struct libadt_const_lptr script)
 Initializes a token object for use in descent_xml_lex_next().
 
struct descent_xml_lex descent_xml_lex_next_raw (struct descent_xml_lex token)
 Returns the next, raw token in the script referred to by previous.
 

Function Documentation

◆ descent_xml_lex_init()

struct descent_xml_lex descent_xml_lex_init ( struct libadt_const_lptr  script)
inline

Initializes a token object for use in descent_xml_lex_next().

Parameters
scriptThe script to create a token from.
Returns
A token, valid for passing to descent_xml_lex_next().

◆ descent_xml_lex_next_raw()

struct descent_xml_lex descent_xml_lex_next_raw ( struct descent_xml_lex  token)
inline

Returns the next, raw token in the script referred to by previous.

Parameters
previousThe previous token from the script.
Returns
The next token.