Rudiments: /home/dmuse/src/rudiments/include/rudiments/private/codetree.h Source File

Rudiments

- Main Page
- Classes

codetree.h
1 // Copyright (c) 2012 David Muse
2 // See the COPYING file for more information.
3
4 private:
5 void buildNonTerminalNodeAssociations(
6 xmldomnode *node);
7 char getSymbolType(xmldomnode *nt);
8 bool isTag(xmldomnode *nt);
9 bool parseChild(xmldomnode *grammarnode,
10 xmldomnode *treeparent,
11 const char **codeposition,
12 stringbuffer *ntbuffer);
13 bool parseConcatenation(xmldomnode *grammarnode,
14 xmldomnode *treeparent,
15 const char **codeposition,
16 stringbuffer *ntbuffer);
17 bool parseAlternation(xmldomnode *grammarnode,
18 xmldomnode *treeparent,
19 const char **codeposition,
20 stringbuffer *ntbuffer);
21 bool parseOption(xmldomnode *grammarnode,
22 xmldomnode *treeparent,
23 const char **codeposition,
24 stringbuffer *ntbuffer);
25 bool parseRepetition(xmldomnode *grammarnode,
26 xmldomnode *treeparent,
27 const char **codeposition,
28 stringbuffer *ntbuffer);
29 bool parseException(xmldomnode *grammarnode,
30 xmldomnode *treeparent,
31 const char **codeposition,
32 stringbuffer *ntbuffer);
33 bool parseTerminal(xmldomnode *grammarnode,
34 xmldomnode *treeparent,
35 const char **codeposition,
36 stringbuffer *ntbuffer);
37 bool compareValue(const char *code,
38 const char *value,
39 size_t *valuelength,
40 const char *casesensitive);
41 bool parseLetter(xmldomnode *grammarnode,
42 xmldomnode *treeparent,
43 const char **codeposition,
44 stringbuffer *ntbuffer);
45 bool parseLowerCaseLetter(xmldomnode *grammarnode,
46 xmldomnode *treeparent,
47 const char **codeposition,
48 stringbuffer *ntbuffer);
49 bool parseUpperCaseLetter(xmldomnode *grammarnode,
50 xmldomnode *treeparent,
51 const char **codeposition,
52 stringbuffer *ntbuffer);
53 bool parseDigit(xmldomnode *grammarnode,
54 xmldomnode *treeparent,
55 const char **codeposition,
56 stringbuffer *ntbuffer);
57 bool parseSet(xmldomnode *grammarnode,
58 xmldomnode *treeparent,
59 const char **codeposition,
60 stringbuffer *ntbuffer);
61 bool parseBreak(xmldomnode *grammarnode,
62 xmldomnode *treeparent,
63 const char **codeposition,
64 stringbuffer *ntbuffer);
65 bool parseNonTerminal(xmldomnode *grammarnode,
66 xmldomnode *treeparent,
67 const char **codeposition,
68 stringbuffer *ntbuffer);
69
70 void pushBreakStack();
71 void popBreakStack();
72 bool parseBreakStack(const char **codeposition);
73
74 bool writeNode(xmldomnode *node,
75 stringbuffer *output);
76 void indent(stringbuffer *output);
77 void writeStartEnd(stringbuffer *output,
78 const char *string);
79
80 codetreeprivate *pvt;
xmldomnode
Definition: xmldomnode.h:123
stringbuffer
Definition: stringbuffer.h:22