public static PBXElementArray ParseArrayAST(ArrayAST ast, TokenList tokens, string text)
        {
            var el = new PBXElementArray();

            foreach (var v in ast.values)
            {
                el.values.Add(ParseValueAST(v, tokens, text));
            }
            return(el);
        }
Пример #2
0
 public ArrayAST ParseList()
 {
     if (Tok() != TokenType.LParen)
         throw new Exception(GetErrorMsg());
     Inc();
     
     var ast = new ArrayAST();
     while (Tok() != TokenType.RParen && Tok() != TokenType.EOF)
     {
         ast.values.Add(ParseValue());
         SkipIf(TokenType.Comma);
     }
     SkipIf(TokenType.RParen);
     return ast;  
 }