示例#1
0
        protected override bool ParseImpl(IParserContext context)
        {
            ParserToken t = context.PeekToken();

            if (t == null)
            {
                return(false);
            }
            else if (t.Type == ParserTokenType.KEYWORD || t.Type == ParserTokenType.OPERATOR || t.Type == ParserTokenType.SEPARATOR)
            {
                if (keyword == t.Word)
                {
                    context.AdvanceToken();
                    context.AppendToClause(t);
                    return(true);
                }
            }
            return(false);
        }