Rudiments
codetree.h
1 // Copyright (c) 2012 David Muse
2 // See the COPYING file for more information.
3 
4  private:
5  char getSymbolType(xmldomnode *nt);
6  bool isTag(xmldomnode *nt);
7  bool parseChild(xmldomnode *grammarnode,
8  xmldomnode *treeparent,
9  const char **codeposition,
10  stringbuffer *ntbuffer);
11  bool parseConcatenation(xmldomnode *grammarnode,
12  xmldomnode *treeparent,
13  const char **codeposition,
14  stringbuffer *ntbuffer);
15  bool endOfStringOk(xmldomnode *grammarnode);
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 compareValue(const char *code,
37  const char *value,
38  size_t *valuelength,
39  const char *casesensitive);
40  bool parseLetter(xmldomnode *grammarnode,
41  xmldomnode *treeparent,
42  const char **codeposition,
43  stringbuffer *ntbuffer);
44  bool parseLowerCaseLetter(xmldomnode *grammarnode,
45  xmldomnode *treeparent,
46  const char **codeposition,
47  stringbuffer *ntbuffer);
48  bool parseUpperCaseLetter(xmldomnode *grammarnode,
49  xmldomnode *treeparent,
50  const char **codeposition,
51  stringbuffer *ntbuffer);
52  bool parseDigit(xmldomnode *grammarnode,
53  xmldomnode *treeparent,
54  const char **codeposition,
55  stringbuffer *ntbuffer);
56  bool parseNonPrintableCharacter(
57  xmldomnode *grammarnode,
58  xmldomnode *treeparent,
59  const char **codeposition,
60  stringbuffer *ntbuffer);
61  bool parseSet(xmldomnode *grammarnode,
62  xmldomnode *treeparent,
63  const char **codeposition,
64  stringbuffer *ntbuffer);
65  bool parseBreak(xmldomnode *grammarnode,
66  xmldomnode *treeparent,
67  const char **codeposition,
68  stringbuffer *ntbuffer);
69  bool parseNonTerminal(xmldomnode *grammarnode,
70  xmldomnode *treeparent,
71  const char **codeposition,
72  stringbuffer *ntbuffer);
73 
74  void pushBreakStack();
75  void popBreakStack();
76  bool parseBreakStack(const char **codeposition);
77 
78  bool writeNode(xmldomnode *node,
80  void indent(stringbuffer *output);
81  void writeStartEnd(stringbuffer *output,
82  const char *string);
83 
84  codetreeprivate *pvt;
Definition: xmldomnode.h:123
Definition: stringbuffer.h:22
Definition: output.h:9