public static PBXElement ParseValueAST(ValueAST ast, TokenList tokens, string text) { if (ast is TreeAST) { return(ParseTreeAST((TreeAST)ast, tokens, text)); } if (ast is ArrayAST) { return(ParseArrayAST((ArrayAST)ast, tokens, text)); } if (ast is IdentifierAST) { return(ParseIdentifierAST((IdentifierAST)ast, tokens, text)); } return(null); }
public static PBXElement ParseValueAST(ValueAST ast, TokenList tokens, string text) { if (ast is TreeAST) { return ParseTreeAST((TreeAST) ast, tokens, text); } if (ast is ArrayAST) { return ParseArrayAST((ArrayAST) ast, tokens, text); } if (ast is IdentifierAST) { return ParseIdentifierAST((IdentifierAST) ast, tokens, text); } return null; }