class SyntaxTree::Parser

def find_token(type)

def find_token(type)
  index = tokens.rindex { |token| token.is_a?(type) }
  tokens[index] if index
end