class RBS::ParsingError
def initialize(location, error_message, token_type)
def initialize(location, error_message, token_type) @location = location @error_message = error_message @token_type = token_type super "#{Location.to_string location}: Syntax error: #{error_message}, token=`#{location.source}` (#{token_type})" end