예제 #1
0
 public Claim(Regex claimMethod, Match match, StringClaimer claimer)
 {
     Success      = true;
     _claimMethod = claimMethod;
     _match       = match;
     _claimer     = claimer;
 }
예제 #2
0
        public new static TProgram Claim(StringClaimer claimer)
        {
            TProgram prog = new TProgram();

            TExpression e;

            while ((e = TExpression.Claim(claimer)) != null)
            {
                claimer.Claim(SemiColon);
                prog._expressions.Add(e);
            }
            return(prog);
        }