Example #1
0
        protected override bool OnParse(ParseResult result, bool errorPass)
        {
            var next    = result.Peek(_inner, errorPass);
            var success = next.Success;

            if (success)
            {
                result.Apply(next, errorPass);
            }
            else
            {
                result.Error(next, errorPass, false);
            }
            return(success);
        }