ParseValueAST() public static method

public static ParseValueAST ( ValueAST ast, TokenList tokens, string text ) : PBXElement
ast ValueAST
tokens TokenList
text string
return PBXElement
コード例 #1
0
        public static PBXElementArray ParseArrayAST(ArrayAST ast, TokenList tokens, string text)
        {
            PBXElementArray pbxElementArray = new PBXElementArray();

            foreach (ValueAST ast1 in ast.values)
            {
                pbxElementArray.values.Add(Serializer.ParseValueAST(ast1, tokens, text));
            }
            return(pbxElementArray);
        }
コード例 #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);
        }