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

Rudiments

codetree.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 private:
5 char getSymbolType(domnode *nt);
6 bool isTag(domnode *nt);
7 bool parseChild(domnode *grammarnode,
8 domnode *treeparent,
9 const char **codeposition,
10 stringbuffer *ntbuffer);
11 bool parseConcatenation(domnode *grammarnode,
12 domnode *treeparent,
13 const char **codeposition,
14 stringbuffer *ntbuffer);
15 bool endOfStringOk(domnode *grammarnode);
16 bool parseAlternation(domnode *grammarnode,
17 domnode *treeparent,
18 const char **codeposition,
19 stringbuffer *ntbuffer);
20 bool parseOption(domnode *grammarnode,
21 domnode *treeparent,
22 const char **codeposition,
23 stringbuffer *ntbuffer);
24 bool parseRepetition(domnode *grammarnode,
25 domnode *treeparent,
26 const char **codeposition,
27 stringbuffer *ntbuffer);
28 bool parseException(domnode *grammarnode,
29 domnode *treeparent,
30 const char **codeposition,
31 stringbuffer *ntbuffer);
32 bool parseTerminal(domnode *grammarnode,
33 domnode *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(domnode *grammarnode,
41 domnode *treeparent,
42 const char **codeposition,
43 stringbuffer *ntbuffer);
44 bool parseLowerCaseLetter(domnode *grammarnode,
45 domnode *treeparent,
46 const char **codeposition,
47 stringbuffer *ntbuffer);
48 bool parseUpperCaseLetter(domnode *grammarnode,
49 domnode *treeparent,
50 const char **codeposition,
51 stringbuffer *ntbuffer);
52 bool parseDigit(domnode *grammarnode,
53 domnode *treeparent,
54 const char **codeposition,
55 stringbuffer *ntbuffer);
56 bool parseNonPrintableCharacter(
57 domnode *grammarnode,
58 domnode *treeparent,
59 const char **codeposition,
60 stringbuffer *ntbuffer);
61 bool parseSet(domnode *grammarnode,
62 domnode *treeparent,
63 const char **codeposition,
64 stringbuffer *ntbuffer);
65 bool parseBreak(domnode *grammarnode,
66 domnode *treeparent,
67 const char **codeposition,
68 stringbuffer *ntbuffer);
69 bool parseNonTerminal(domnode *grammarnode,
70 domnode *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(domnode *node,
79 stringbuffer *output);
80 void indent(stringbuffer *output);
81 void writeStartEnd(stringbuffer *output,
82 const char *string);
83
84 codetreeprivate *pvt;
domnode
Definition: domnode.h:122
output
Definition: output.h:9
stringbuffer
Definition: stringbuffer.h:13