public void AddToken(Token token) { tokens.Add (token); }
public bool Accept(TokenClass clazz, ref Token token) { if (PeekToken () != null && PeekToken ().Class == clazz) { token = ReadToken (); return true; } return false; }
public void AddToken(Token token) { tokens.Add (token); }
public bool Accept(TokenClass clazz, ref Token token) { if (PeekToken () != null && PeekToken ().Class == clazz) { token = ReadToken (); return true; } return false; }