summaryrefslogtreecommitdiffabout
path: root/include/sitecing/sitecing_parser.h
Unidiff
Diffstat (limited to 'include/sitecing/sitecing_parser.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/sitecing/sitecing_parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sitecing/sitecing_parser.h b/include/sitecing/sitecing_parser.h
index a8474f3..a53ef22 100644
--- a/include/sitecing/sitecing_parser.h
+++ b/include/sitecing/sitecing_parser.h
@@ -67,49 +67,50 @@ class sitecing_parser : public sitecing_parserFlexLexer {
67 */ 67 */
68 string type; 68 string type;
69 /** 69 /**
70 * The member variable name. 70 * The member variable name.
71 */ 71 */
72 string name; 72 string name;
73 /** 73 /**
74 * The member variable is a component. 74 * The member variable is a component.
75 */ 75 */
76 bool bComponent; 76 bool bComponent;
77 /** 77 /**
78 * The variable initializer. 78 * The variable initializer.
79 */ 79 */
80 string initializer; 80 string initializer;
81 /** 81 /**
82 * @todo TODO: wish I could remember -- document me. 82 * @todo TODO: wish I could remember -- document me.
83 */ 83 */
84 bool bTypeOnly; 84 bool bTypeOnly;
85 85
86 /** 86 /**
87 * @param t type. 87 * @param t type.
88 * @param n name. 88 * @param n name.
89 * @param i initializer. 89 * @param i initializer.
90 * @param bc whether it is a component. 90 * @param bc whether it is a component.
91 * @param bto @todo TODO: @see bTypeOnly. 91 * @param bto document me @todo TODO:
92 * @see bTypeOnly.
92 */ 93 */
93 member_variable(const string& t,const string& n,const string& i,bool bc = false,bool bto = false) 94 member_variable(const string& t,const string& n,const string& i,bool bc = false,bool bto = false)
94 : type(t), name(n), initializer(i), bComponent(bc), bTypeOnly(bto) { } 95 : type(t), name(n), initializer(i), bComponent(bc), bTypeOnly(bto) { }
95 }; 96 };
96 /** 97 /**
97 * The list of member variables. 98 * The list of member variables.
98 */ 99 */
99 typedef list<member_variable> member_variables_t; 100 typedef list<member_variable> member_variables_t;
100 /** 101 /**
101 * Member variables. 102 * Member variables.
102 */ 103 */
103 member_variables_t member_variables; 104 member_variables_t member_variables;
104 /** 105 /**
105 * @todo TODO: wish I could remember the details -- document me. 106 * @todo TODO: wish I could remember the details -- document me.
106 */ 107 */
107 bool have_initializers; 108 bool have_initializers;
108 /** 109 /**
109 * Whether the component has a constructor defined. 110 * Whether the component has a constructor defined.
110 */ 111 */
111 bool have_constructor; 112 bool have_constructor;
112 /** 113 /**
113 * Member function definition. 114 * Member function definition.
114 */ 115 */
115 class member_function { 116 class member_function {
@@ -200,50 +201,49 @@ class sitecing_parser : public sitecing_parserFlexLexer {
200 */ 201 */
201 int flags; 202 int flags;
202 /** 203 /**
203 * Output being built. 204 * Output being built.
204 */ 205 */
205 string output; 206 string output;
206 /** 207 /**
207 * The type for compound modes. 208 * The type for compound modes.
208 */ 209 */
209 string _type; 210 string _type;
210 /** 211 /**
211 * The last id encountered. 212 * The last id encountered.
212 */ 213 */
213 string _lastid; 214 string _lastid;
214 /** 215 /**
215 * The name for compound modes. 216 * The name for compound modes.
216 */ 217 */
217 string _name; 218 string _name;
218 /** 219 /**
219 * The argument declaration. Obviously for member functions. 220 * The argument declaration. Obviously for member functions.
220 */ 221 */
221 string _args; 222 string _args;
222 223
223 /** 224 /**
224 * @param flags. 225 * @param f processing flags @see flags
225 * @see flags
226 */ 226 */
227 modus_operandi(int f = 0) 227 modus_operandi(int f = 0)
228 : modus(modus_code), flags(f) { } 228 : modus(modus_code), flags(f) { }
229 229
230 /** 230 /**
231 * Change the processing mode. 231 * Change the processing mode.
232 */ 232 */
233 void modify(modus_t m); 233 void modify(modus_t m);
234 234
235 /** 235 /**
236 * See if we're eating up whitespaces. 236 * See if we're eating up whitespaces.
237 */ 237 */
238 bool devour_whitespace() { return flags&flag_devour_whitespace; } 238 bool devour_whitespace() { return flags&flag_devour_whitespace; }
239 /** 239 /**
240 * See if we're eating up the comments. 240 * See if we're eating up the comments.
241 */ 241 */
242 bool devour_comments() { return flags&flag_devour_comments; } 242 bool devour_comments() { return flags&flag_devour_comments; }
243 }; 243 };
244 /** 244 /**
245 * The modes stack type. 245 * The modes stack type.
246 */ 246 */
247 typedef list<modus_operandi> modi_operandi; 247 typedef list<modus_operandi> modi_operandi;
248 /** 248 /**
249 * The modes stack. 249 * The modes stack.