   upcomingInput: -> ""
   showPosition: -> @pos
 }
+
+# Improved error messages.
+parser.parseError: (message, hash) ->
+  throw new Error 'Unexpected ' + hash.token + ' on line ' + hash.line
 
 exports.VERSION: '0.5.0'
 

if process?
  process.mixin require './nodes'
  path:         require('path')

    return unless message
    puts message
    throw new Error "CoffeeScript compile error"
