Inheritance: ValueAST
Esempio n. 1
0
 public static PBXElementDict ParseTreeAST(TreeAST ast, TokenList tokens, string text)
 {
     PBXElementDict dict = new PBXElementDict();
     foreach (KeyValueAST east in ast.values)
     {
         PBXElementString str = ParseIdentifierAST(east.key, tokens, text);
         PBXElement element = ParseValueAST(east.value, tokens, text);
         dict[str.value] = element;
     }
     return dict;
 }
Esempio n. 2
0
        public static PBXElementDict ParseTreeAST(TreeAST ast, TokenList tokens, string text)
        {
            PBXElementDict pbxElementDict = new PBXElementDict();

            foreach (KeyValueAST keyValueAst in ast.values)
            {
                PBXElementString pbxElementString = Serializer.ParseIdentifierAST(keyValueAst.key, tokens, text);
                PBXElement       pbxElement       = Serializer.ParseValueAST(keyValueAst.value, tokens, text);
                pbxElementDict[pbxElementString.value] = pbxElement;
            }
            return(pbxElementDict);
        }
Esempio n. 3
0
        public static PBXElementDict ParseTreeAST(TreeAST ast, TokenList tokens, string text)
        {
            PBXElementDict dict = new PBXElementDict();

            foreach (KeyValueAST east in ast.values)
            {
                PBXElementString str     = ParseIdentifierAST(east.key, tokens, text);
                PBXElement       element = ParseValueAST(east.value, tokens, text);
                dict[str.value] = element;
            }
            return(dict);
        }
Esempio n. 4
0
        public static PBXElementDict ParseTreeAST(TreeAST ast, TokenList tokens, string text)
        {
            var el = new PBXElementDict();

            foreach (var kv in ast.values)
            {
                PBXElementString key   = ParseIdentifierAST(kv.key, tokens, text);
                PBXElement       value = ParseValueAST(kv.value, tokens, text);
                el[key.value] = value;
            }
            return(el);
        }
Esempio n. 5
0
 public TreeAST ParseTree()
 {
     if (Tok() != TokenType.LBrace)
         throw new Exception(GetErrorMsg());
     Inc();
     
     var ast = new TreeAST();
     while (Tok() != TokenType.RBrace && Tok() != TokenType.EOF)
     {
         ast.values.Add(ParseKeyValue());
     }
     SkipIf(TokenType.RBrace);
     return ast;  
 }
Esempio n. 6
0
 public TreeAST ParseTree()
 {
     if (this.Tok() != UnityEditor.iOS.Xcode.PBX.TokenType.LBrace)
     {
         throw new Exception(this.GetErrorMsg());
     }
     this.Inc();
     TreeAST east = new TreeAST();
     while ((this.Tok() != UnityEditor.iOS.Xcode.PBX.TokenType.RBrace) && (this.Tok() != UnityEditor.iOS.Xcode.PBX.TokenType.EOF))
     {
         east.values.Add(this.ParseKeyValue());
     }
     this.SkipIf(UnityEditor.iOS.Xcode.PBX.TokenType.RBrace);
     return east;
 }
Esempio n. 7
0
        public TreeAST ParseTree()
        {
            if (this.Tok() != TokenType.LBrace)
            {
                throw new Exception(this.GetErrorMsg());
            }
            this.Inc();
            TreeAST treeAst = new TreeAST();

            while (this.Tok() != TokenType.RBrace && this.Tok() != TokenType.EOF)
            {
                treeAst.values.Add(this.ParseKeyValue());
            }
            this.SkipIf(TokenType.RBrace);
            return(treeAst);
        }
Esempio n. 8
0
        public TreeAST ParseTree()
        {
            if (this.Tok() != UnityEditor.iOS.Xcode.PBX.TokenType.LBrace)
            {
                throw new Exception(this.GetErrorMsg());
            }
            this.Inc();
            TreeAST east = new TreeAST();

            while ((this.Tok() != UnityEditor.iOS.Xcode.PBX.TokenType.RBrace) && (this.Tok() != UnityEditor.iOS.Xcode.PBX.TokenType.EOF))
            {
                east.values.Add(this.ParseKeyValue());
            }
            this.SkipIf(UnityEditor.iOS.Xcode.PBX.TokenType.RBrace);
            return(east);
        }
Esempio n. 9
0
 public static PBXElementDict ParseTreeAST(TreeAST ast, TokenList tokens, string text)
 {
     var el = new PBXElementDict();
     foreach (var kv in ast.values)
     {
         PBXElementString key = ParseIdentifierAST(kv.key, tokens, text);
         PBXElement value = ParseValueAST(kv.value, tokens, text);
         el[key.value] = value;
     }
     return el;
 }
Esempio n. 10
0
        public TreeAST ParseTree()
        {
            if (Tok() != TokenType.LBrace)
                throw new Exception(GetErrorMsg());
            Inc();

            var ast = new TreeAST();
            while (Tok() != TokenType.RBrace && Tok() != TokenType.EOF)
            {
                ast.values.Add(ParseKeyValue());
            }
            SkipIf(TokenType.RBrace);
            return ast;
        }