Beispiel #1
0
 public JoopToken(JoopTokenType tokenType, string content, int index)
     : this()
 {
     Type = tokenType;
     Content = content;
     Index = index;
 }
Beispiel #2
0
        protected bool Expect(JoopTokenType type)
        {
            string errorMessage = string.Format("Unexpected token of type {0}. Expecting {1}.",
                                                CurrentToken.Type,
                                                type);

            return(Expect(token => token.Type == type, errorMessage));
        }
Beispiel #3
0
 protected bool Accept(JoopTokenType type)
 {
     return(Accept(token => token.Type == type));
 }