Example #1
0
 void ConsumeAsTokenOrIdentifier(MmlTokenType token, string value)
 {
     ConsumeAsToken (token);
     Value = value;
 }
Example #2
0
 public void ExpectNext(MmlTokenType tokenType)
 {
     if (!Advance ())
         throw LexerError (String.Format ("Expected token {0}, but reached end of the input", CurrentToken));
     ExpectCurrent (tokenType);
 }
Example #3
0
 void ConsumeAsToken(MmlTokenType token)
 {
     Line.ReadChar ();
     CurrentToken = token;
     Value = null;
 }
Example #4
0
 public void ExpectCurrent(MmlTokenType tokenType)
 {
     if (CurrentToken != tokenType)
         throw LexerError (String.Format ("Expected token {0} but found {1}", tokenType, CurrentToken));
 }