void RootProgram::exportModel(ExportInfo& ei, QDomElement& elParent) const { QDomElement elMe; if (ei.wantExport(this, elParent, elMe)) { exportIdentifier(elMe, name()); if (declList() && declList()->count()) { QDomElement elInterface = ei.newElement(elMe, "Root.Unit.Interface"); declList()->exportModel(ei, elInterface); } } }
void SyntaxAnalyzer::declListPrime() { if (currentToken.lexeme() == "int" || currentToken.lexeme() == "boolean") { cout << "<Declaration List>' -> <Declaration List>" << endl; declList(); } else { cout << "Declaration List>' -> <Empty>" << endl; } }