예제 #1
0
        public TypeDeclNode loadTypeDecl(string path)
        {
            string       tname = oilcan.getStringValue(path, "");
            TypeDeclNode tnode = new TypeDeclNode(tname);

            return(tnode);
        }
예제 #2
0
 public VarDeclNode()
 {
     type        = OILType.VarDecl;
     name        = "";
     varType     = null;
     initializer = null;
 }
예제 #3
0
 public FuncDefNode()
 {
     type       = OILType.FuncDecl;
     name       = "";
     returnType = null;
     paramList  = new List <ParamDeclNode>();
     isVaradic  = false;
     locals     = new List <VarDeclNode>();
     body       = null;
     isInline   = false;
 }
예제 #4
0
 public void saveTypeDecl(string path, TypeDeclNode typdef)
 {
     oilcan.setStringValue(path, typdef.name);
 }
예제 #5
0
 public ParamDeclNode()
 {
     type  = OILType.ParamDecl;
     name  = "";
     pType = null;
 }