Beispiel #1
0
        public DeclarInitStatementNode loadDeclarationStmt(string path)
        {
            VarDeclNode             decl  = (VarDeclNode)loadSymbolRef(path + ".var");
            ExprNode                expr  = loadExpression(path + ".expr");
            DeclarInitStatementNode snode = new DeclarInitStatementNode(decl, expr);

            return(snode);
        }
Beispiel #2
0
 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);
 }