示例#1
0
        void SelectClause(QueryNode parent)
        {
            QueryNode node, expr = null;

            node = new SelectNode();
            parent.Add(node);
            while (StartOf(1))
            {
                if (la.kind == 3 || la.kind == 4)
                {
                    ReservedWords();
                    return;
                }
                if (la.kind == 5)
                {
                    Get();
                }
                if (la.kind == 11)
                {
                    SelectStar();
                    node.Add(new LeafNode(t.val));
                }
                else if (StartOf(2))
                {
                    ExprSpec(out expr);
                    node.Add(expr);
                }
                else
                {
                    SynErr(23);
                }
            }
        }