A Filter for the lexer, useful for filtering (e.g.) insignificant newlines. The accept function is not just a parameter but needs to be overridden in a subclass as it's expected to be stateful.
Override this method to filter out specific tokens from the stream