Rudiments
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  const char getSymbolType(xmldomnode *nt);
8  bool parseChild(xmldomnode *grammarnode,
9  xmldomnode *treeparent,
10  const char **codeposition,
11  stringbuffer *ntbuffer);
12  bool parseConcatenation(xmldomnode *grammarnode,
13  xmldomnode *treeparent,
14  const char **codeposition,
15  stringbuffer *ntbuffer);
16  bool parseAlternation(xmldomnode *grammarnode,
17  xmldomnode *treeparent,
18  const char **codeposition,
19  stringbuffer *ntbuffer);
20  bool parseOption(xmldomnode *grammarnode,
21  xmldomnode *treeparent,
22  const char **codeposition,
23  stringbuffer *ntbuffer);
24  bool parseRepetition(xmldomnode *grammarnode,
25  xmldomnode *treeparent,
26  const char **codeposition,
27  stringbuffer *ntbuffer);
28  bool parseException(xmldomnode *grammarnode,
29  xmldomnode *treeparent,
30  const char **codeposition,
31  stringbuffer *ntbuffer);
32  bool parseTerminal(xmldomnode *grammarnode,
33  xmldomnode *treeparent,
34  const char **codeposition,
35  stringbuffer *ntbuffer);
36  bool parseLetter(xmldomnode *grammarnode,
37  xmldomnode *treeparent,
38  const char **codeposition,
39  stringbuffer *ntbuffer);
40  bool parseLowerCaseLetter(xmldomnode *grammarnode,
41  xmldomnode *treeparent,
42  const char **codeposition,
43  stringbuffer *ntbuffer);
44  bool parseUpperCaseLetter(xmldomnode *grammarnode,
45  xmldomnode *treeparent,
46  const char **codeposition,
47  stringbuffer *ntbuffer);
48  bool parseDigit(xmldomnode *grammarnode,
49  xmldomnode *treeparent,
50  const char **codeposition,
51  stringbuffer *ntbuffer);
52  bool parseSet(xmldomnode *grammarnode,
53  xmldomnode *treeparent,
54  const char **codeposition,
55  stringbuffer *ntbuffer);
56  bool parseBreak(xmldomnode *grammarnode,
57  xmldomnode *treeparent,
58  const char **codeposition,
59  stringbuffer *ntbuffer);
60  bool parseNonTerminal(xmldomnode *grammarnode,
61  xmldomnode *treeparent,
62  const char **codeposition,
63  stringbuffer *ntbuffer);
64 
65  bool writeNode(xmldomnode *node,
66  stringbuffer *output);
67  void indent(stringbuffer *output);
68  void writeStartEnd(stringbuffer *output,
69  const char *string);
70 
71  codetreeprivate *pvt;