Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

TinyXPath::token_syntax_decoder Class Reference

XPath syntax decoder class. More...

#include <xpath_syntax.h>

Inheritance diagram for TinyXPath::token_syntax_decoder:

Inheritance graph
[legend]
Collaboration diagram for TinyXPath::token_syntax_decoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 token_syntax_decoder ()
virtual ~token_syntax_decoder ()
void v_syntax_decode ()
 Decodes the syntax of an XPath expression.

virtual void v_action (xpath_construct xc_rule, unsigned u_sub, unsigned u_variable=0, const char *cp_literal="")=0
 Pure virtual : action taken when processing the rule.

virtual int i_get_action_counter ()=0

Protected Member Functions

bool o_recognize (xpath_construct xc_current, bool o_final)
 Recognize one XPath construction
This function throws exceptions every time there's a failure in a backtracking attempt.


Protected Attributes

unsigned u_nb_recurs
 Nb of recursions.


Detailed Description

XPath syntax decoder class.

Pure virtual : one need to redefine v_action and i_get_action_counter


Constructor & Destructor Documentation

TinyXPath::token_syntax_decoder::token_syntax_decoder  )  [inline]
 

virtual TinyXPath::token_syntax_decoder::~token_syntax_decoder  )  [inline, virtual]
 


Member Function Documentation

virtual int TinyXPath::token_syntax_decoder::i_get_action_counter  )  [pure virtual]
 

Implemented in TinyXPath::token_redef.

bool TinyXPath::token_syntax_decoder::o_recognize xpath_construct  xc_current,
bool  o_final
[protected]
 

Recognize one XPath construction
This function throws exceptions every time there's a failure in a backtracking attempt.

This should only happen when o_final is false, otherwise we have a syntax error

Parameters:
xc_current  XPath construction to recognize
o_final  true if we need to go on, false if it's just a trial in the backtracking

virtual void TinyXPath::token_syntax_decoder::v_action xpath_construct  xc_rule,
unsigned  u_sub,
unsigned  u_variable = 0,
const char *  cp_literal = ""
[pure virtual]
 

Pure virtual : action taken when processing the rule.

Implemented in TinyXPath::token_redef.

void TinyXPath::token_syntax_decoder::v_syntax_decode  ) 
 

Decodes the syntax of an XPath expression.

On entry, the lexical analysis has already produced a list of basic tokens.
Throws : syntax_error, syntax_overflow


Member Data Documentation

unsigned TinyXPath::token_syntax_decoder::u_nb_recurs [protected]
 

Nb of recursions.


The documentation for this class was generated from the following files:
Generated for TinyXPath by doxygen SourceForge Logo