private TryParseToken ( TokenType type, string value ) : bool | ||
type | TokenType | |
value | string | |
Résultat | bool |
private bool TryParseToken(TokenType type, string value)
{
Token token = this.NextToken();
if (token == null)
return false;
if (token.Type == type && token.Value == value)
return true;
this.PushToken(token);
return false;
}