Beispiel #1
0
        private static ArgConcatrTuple MakeArgConcatr(ref TokenReader reader)
        {
            System.Diagnostics.Debug.WriteLine("MakeArgConcatr");
            ArgConcatrTuple ret = new ArgConcatrTuple();

            if (TryLookAhead(ref reader, Token.TokenType.Comma))
            {
                ret.ArgBody    = MakeArgBody(ref reader);
                ret.ArgConcatr = MakeArgConcatr(ref reader);
            }
            AssertNextAny(ref reader, false, Token.TokenType.CloseBracket,
                          Token.TokenType.ConcatenatorAnd, Token.TokenType.ConcatenatorOr);
            return(ret);
        }
Beispiel #2
0
 private static ArgConcatrTuple MakeArgConcatr(ref TokenReader reader)
 {
     System.Diagnostics.Debug.WriteLine("MakeArgConcatr");
     ArgConcatrTuple ret = new ArgConcatrTuple();
     if (TryLookAhead(ref reader, Token.TokenType.Comma))
     {
         ret.ArgBody = MakeArgBody(ref reader);
         ret.ArgConcatr = MakeArgConcatr(ref reader);
     }
     AssertNextAny(ref reader, false, Token.TokenType.CloseBracket,
         Token.TokenType.ConcatenatorAnd, Token.TokenType.ConcatenatorOr);
     return ret;
 }