48 # define __STRINGIZE(X) #X 49 # define DATA __STRINGIZE(DATAC) 109 const char *instruction);
118 My_Parser_Class pclass;
125 pclass.register_id(
"//EST//Test/\\(.*\\)",
130 XML_Parser *parser = pclass.make_parser(DATA
"/eg.xml",
146 Parse_State *state = (Parse_State *)data;
150 printf(
"%*s document %d\n", state->depth*4,
">", state->depth);
158 Parse_State *state = (Parse_State *)data;
160 printf(
"%*s <document %d\n", state->depth*4,
">", state->depth);
170 (void)c; (void)p; (void)attributes;
171 Parse_State *state = (Parse_State *)data;
175 printf(
"%*s %s %d\n", state->depth*4,
">", name, state->depth);
185 (void)c; (void)p; (void)attributes;
186 Parse_State *state = (Parse_State *)data;
188 printf(
"%*s %s %d\n", state->depth*4,
":", name, state->depth);
198 Parse_State *state = (Parse_State *)data;
200 printf(
"%*s %s %d\n", state->depth*4,
"<", name, state->depth);
211 Parse_State *state = (Parse_State *)data;
213 printf(
"%*s [pcdata[%s]] %d\n", state->depth*4,
"", chars, state->depth);
223 Parse_State *state = (Parse_State *)data;
225 printf(
"%*s [cdata[%s]] %d\n", state->depth*4,
"", chars, state->depth);
232 const char *instruction)
235 Parse_State *state = (Parse_State *)data;
237 printf(
"%*s [proc[%s]] %d\n", state->depth*4,
"", instruction, state->depth);
246 Parse_State *state = (Parse_State *)data;
248 printf(
"%*s [error[%s]] %d\n", state->depth*4,
"", get_error(p), state->depth);
A specialised hash table for when the key is an EST_String.
EST_Track error(EST_Track &ref, EST_Track &test, int relax=0)