20 static void writeValueTypeString(FILE* out,
EXIType exiType);
24 Index ruleIter, prodIter;
28 fprintf(out,
"Grammar %d [%d:%d] ", (
int) grIndex, (
int) qnameid.
uriId, (
int) qnameid.
lnId);
34 for(ruleIter = 0; ruleIter < gr->
count; ruleIter++)
36 fprintf(out,
"NT-%d: \n", (
int) ruleIter);
38 for(prodIter = 0; prodIter < gr->
rule[ruleIter].
pCount; prodIter++)
48 fprintf(out,
"\tSD ");
51 fprintf(out,
"\tED ");
61 fprintf(out,
"\tSE (uri) ");
64 fprintf(out,
"\tSE (*) ");
67 fprintf(out,
"\tEE ");
75 writeValueTypeString(out, exiType);
78 fprintf(out,
"\tAT (uri) ");
81 fprintf(out,
"\tAT (*) ");
82 writeValueTypeString(out, exiType);
85 fprintf(out,
"\tCH ");
86 writeValueTypeString(out, exiType);
89 fprintf(out,
"\tNS ");
92 fprintf(out,
"\tCM ");
95 fprintf(out,
"\tPI ");
98 fprintf(out,
"\tDT ");
101 fprintf(out,
"\tER ");
104 fprintf(out,
"\tSC ");
116 fprintf(out,
"%d\n", (
int) prodIter);
124 static void writeValueTypeString(FILE* out,
EXIType exiType)
129 fprintf(out,
"[N/A] ");
132 fprintf(out,
"[str] ");
135 fprintf(out,
"[float] ");
138 fprintf(out,
"[dec] ");
145 fprintf(out,
"[dateTime] ");
148 fprintf(out,
"[bool] ");
151 fprintf(out,
"[bin] ");
154 fprintf(out,
"[list] ");
157 fprintf(out,
"[qname] ");
160 fprintf(out,
"[untyped] ");
163 fprintf(out,
"[int] ");
166 fprintf(out,
"[short] ");
169 fprintf(out,
"[uint] ");
183 for(r = 0; r < gr->
count; r++)