Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (28 sloc) 0.786 kB
262584b WIP, moved parser to %union
Kyle Maxwell authored
1 #ifndef _parsed_xpath_h_
2 #define _parsed_xpath_h_
3
4 #include <stdarg.h>
5
6 typedef struct __pxpath_node {
7 int type;
8 char* value;
9 struct __pxpath_node * next;
10 struct __pxpath_node * child;
11 } pxpath_node;
12
13 typedef pxpath_node * pxpathPtr;
14
15 enum {
4c102cc WIP, compiles bad XSLT
Kyle Maxwell authored
16 PXPATH_FUNCTION = 1,
17 PXPATH_PATH = 2,
73db545 fixed calculations and //keyword
Kyle Maxwell authored
18 PXPATH_LITERAL = 3,
19 PXPATH_LIT_EXPR = 4,
20 PXPATH_OPERATOR = 3
262584b WIP, moved parser to %union
Kyle Maxwell authored
21 };
22
23 pxpathPtr pxpath_new(int type, char* value);
24 pxpathPtr pxpath_new_func(char* value, pxpathPtr child);
4e5efd0 WIP, tentative reworking of parser
Kyle Maxwell authored
25 pxpathPtr pxpath_cat_paths(int n, ...);
73db545 fixed calculations and //keyword
Kyle Maxwell authored
26 pxpathPtr pxpath_cat_literals(int n, ...);
4e5efd0 WIP, tentative reworking of parser
Kyle Maxwell authored
27 pxpathPtr pxpath_new_path(int n, ...);
4c102cc WIP, compiles bad XSLT
Kyle Maxwell authored
28 pxpathPtr pxpath_dup(pxpathPtr p);
4e5efd0 WIP, tentative reworking of parser
Kyle Maxwell authored
29 pxpathPtr pxpath_new_literal(int n, ...);
73db545 fixed calculations and //keyword
Kyle Maxwell authored
30 pxpathPtr pxpath_new_operator(int n, ...);
262584b WIP, moved parser to %union
Kyle Maxwell authored
31 void pxpath_free(pxpathPtr ptr);
32 char* pxpath_to_string(pxpathPtr ptr);
33
34 #endif
Something went wrong with that request. Please try again.