Exemplo n.º 1
0
    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);
            }

        }
    }
Exemplo n.º 2
0
void SyntaxAnalyzer::declListPrime() {
	if (currentToken.lexeme() == "int" || currentToken.lexeme() == "boolean") {
		cout << "<Declaration List>' -> <Declaration List>" << endl;
		declList();
	}
	else {
		cout << "Declaration List>' -> <Empty>" << endl;
	}
}