Пример #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;
 }