TraceX
 
Loading...
Searching...
No Matches
xpath_parser Struct Reference
Collaboration diagram for xpath_parser:

Classes

struct  binary_op_t
 

Public Member Functions

xpath_ast_nodeerror (const char *message)
 
xpath_ast_nodeerror_oom ()
 
xpath_ast_nodeerror_rec ()
 
void * alloc_node ()
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_value_type rettype, const char_t *value)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_value_type rettype, double value)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_value_type rettype, xpath_variable *value)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_value_type rettype, xpath_ast_node *left=NULL, xpath_ast_node *right=NULL)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_ast_node *left, axis_t axis, nodetest_t test, const char_t *contents)
 
xpath_ast_nodealloc_node (ast_type_t type, xpath_ast_node *left, xpath_ast_node *right, predicate_t test)
 
const char_t * alloc_string (const xpath_lexer_string &value)
 
xpath_ast_nodeparse_function (const xpath_lexer_string &name, size_t argc, xpath_ast_node *args[2])
 
axis_t parse_axis_name (const xpath_lexer_string &name, bool &specified)
 
nodetest_t parse_node_test_type (const xpath_lexer_string &name)
 
xpath_ast_nodeparse_primary_expression ()
 
xpath_ast_nodeparse_filter_expression ()
 
xpath_ast_nodeparse_step (xpath_ast_node *set)
 
xpath_ast_nodeparse_relative_location_path (xpath_ast_node *set)
 
xpath_ast_nodeparse_location_path ()
 
xpath_ast_nodeparse_path_or_unary_expression ()
 
xpath_ast_nodeparse_expression_rec (xpath_ast_node *lhs, int limit)
 
xpath_ast_nodeparse_expression (int limit=0)
 
 xpath_parser (const char_t *query, xpath_variable_set *variables, xpath_allocator *alloc, xpath_parse_result *result)
 
xpath_ast_nodeparse ()
 

Static Public Member Functions

static xpath_ast_nodeparse (const char_t *query, xpath_variable_set *variables, xpath_allocator *alloc, xpath_parse_result *result)
 

Public Attributes

xpath_allocator_alloc
 
xpath_lexer _lexer
 
const char_t * _query
 
xpath_variable_set * _variables
 
xpath_parse_result * _result
 
char_t _scratch [32]
 
size_t _depth
 

Constructor & Destructor Documentation

◆ xpath_parser()

xpath_parser::xpath_parser ( const char_t * query,
xpath_variable_set * variables,
xpath_allocator * alloc,
xpath_parse_result * result )
inline
Here is the caller graph for this function:

Member Function Documentation

◆ alloc_node() [1/7]

void * xpath_parser::alloc_node ( )
inline
Here is the caller graph for this function:

◆ alloc_node() [2/7]

xpath_ast_node * xpath_parser::alloc_node ( ast_type_t type,
xpath_ast_node * left,
axis_t axis,
nodetest_t test,
const char_t * contents )
inline
Here is the call graph for this function:

◆ alloc_node() [3/7]

xpath_ast_node * xpath_parser::alloc_node ( ast_type_t type,
xpath_ast_node * left,
xpath_ast_node * right,
predicate_t test )
inline
Here is the call graph for this function:

◆ alloc_node() [4/7]

xpath_ast_node * xpath_parser::alloc_node ( ast_type_t type,
xpath_value_type rettype,
const char_t * value )
inline
Here is the call graph for this function:

◆ alloc_node() [5/7]

xpath_ast_node * xpath_parser::alloc_node ( ast_type_t type,
xpath_value_type rettype,
double value )
inline
Here is the call graph for this function:

◆ alloc_node() [6/7]

xpath_ast_node * xpath_parser::alloc_node ( ast_type_t type,
xpath_value_type rettype,
xpath_ast_node * left = NULL,
xpath_ast_node * right = NULL )
inline
Here is the call graph for this function:

◆ alloc_node() [7/7]

xpath_ast_node * xpath_parser::alloc_node ( ast_type_t type,
xpath_value_type rettype,
xpath_variable * value )
inline
Here is the call graph for this function:

◆ alloc_string()

const char_t * xpath_parser::alloc_string ( const xpath_lexer_string & value)
inline
Here is the caller graph for this function:

◆ error()

xpath_ast_node * xpath_parser::error ( const char * message)
inline
Here is the caller graph for this function:

◆ error_oom()

xpath_ast_node * xpath_parser::error_oom ( )
inline
Here is the caller graph for this function:

◆ error_rec()

xpath_ast_node * xpath_parser::error_rec ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse() [1/2]

xpath_ast_node * xpath_parser::parse ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse() [2/2]

static xpath_ast_node * xpath_parser::parse ( const char_t * query,
xpath_variable_set * variables,
xpath_allocator * alloc,
xpath_parse_result * result )
inlinestatic
Here is the call graph for this function:

◆ parse_axis_name()

axis_t xpath_parser::parse_axis_name ( const xpath_lexer_string & name,
bool & specified )
inline
Here is the caller graph for this function:

◆ parse_expression()

xpath_ast_node * xpath_parser::parse_expression ( int limit = 0)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_expression_rec()

xpath_ast_node * xpath_parser::parse_expression_rec ( xpath_ast_node * lhs,
int limit )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_filter_expression()

xpath_ast_node * xpath_parser::parse_filter_expression ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_function()

xpath_ast_node * xpath_parser::parse_function ( const xpath_lexer_string & name,
size_t argc,
xpath_ast_node * args[2] )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_location_path()

xpath_ast_node * xpath_parser::parse_location_path ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_node_test_type()

nodetest_t xpath_parser::parse_node_test_type ( const xpath_lexer_string & name)
inline
Here is the caller graph for this function:

◆ parse_path_or_unary_expression()

xpath_ast_node * xpath_parser::parse_path_or_unary_expression ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_primary_expression()

xpath_ast_node * xpath_parser::parse_primary_expression ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_relative_location_path()

xpath_ast_node * xpath_parser::parse_relative_location_path ( xpath_ast_node * set)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_step()

xpath_ast_node * xpath_parser::parse_step ( xpath_ast_node * set)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _alloc

xpath_allocator* xpath_parser::_alloc

◆ _depth

size_t xpath_parser::_depth

◆ _lexer

xpath_lexer xpath_parser::_lexer

◆ _query

const char_t* xpath_parser::_query

◆ _result

xpath_parse_result* xpath_parser::_result

◆ _scratch

char_t xpath_parser::_scratch[32]

◆ _variables

xpath_variable_set* xpath_parser::_variables

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