}\r
\r
QDomElement eltProd = eltCons.nextSiblingElement("production");\r
+ \r
productionCounter = eltProd.attribute("counter","none");\r
- QDomNodeList listNodeOutput = eltCons.elementsByTagName("output");\r
+ QDomNodeList listNodeOutput = eltProd.elementsByTagName("output");\r
for(int i=0; i<listNodeOutput.size(); i++) {\r
QDomNode node = listNodeOutput.at(i); \r
QDomElement elt = node.toElement(); \r
QString patternStr = elt.attribute("pattern","none"); \r
productionPattern.insert(nameStr,patternStr); \r
}\r
+ cout << "patterns summary:" << endl;\r
+ QHashIterator<QString,QString> iterP(productionPattern);\r
+ while (iterP.hasNext()) {\r
+ iterP.next();\r
+ cout << qPrintable(iterP.key()) << " -> " << qPrintable(iterP.value()) << endl;\r
+ }\r
cout << "impls patterns read correctly" << endl;\r
}\r
\r