public DeclarInitStatementNode loadDeclarationStmt(string path) { VarDeclNode decl = (VarDeclNode)loadSymbolRef(path + ".var"); ExprNode expr = loadExpression(path + ".expr"); DeclarInitStatementNode snode = new DeclarInitStatementNode(decl, expr); return(snode); }
public void saveDeclarationStmt(string path, DeclarInitStatementNode stmt) { oilcan.setStringValue(path + ".type", "decl-init"); oilcan.setStringValue(path + ".var", stmt.decl.OILname); saveExpression(path + ".expr", stmt.initexpr); }