Exemple #1
0
        protected override bool InternalMatch(ParserState p)
        {
            Rule r = rules[0];

            if (!r.Match(p))
            {
                ParsingException ex = new ParsingException(p.Peek(), r, p);
                throw ex;
            }
            return(true);
        }
Exemple #2
0
 protected override bool InternalMatch(ParserState p)
 {
     Rule r = rules[0];
     if (!r.Match(p))
     {
         ParsingException ex = new ParsingException(p.Peek(), r, p);
         throw ex;
     }
     return true;
 }