   # Helpers
 
   error: (message, line = @line, column = @column) ->
-    throw new SyntexError(message, @source, line, column, @options.file)
+    throw new SyntexError(message, @source, line, column, @opts.file)
 
   move: ->
     @pos    += 1


# CSS parser
class Parser
  constructor: (source, @options) ->
    @source = source.toString()

    @root    = new Root()

  trim: (string) ->
    string.replace(/^\s*/, '').replace(/\s*$/, '')

module.exports = (source, opts = { }) ->
  parser = new Parser(source, opts)
  parser.loop()
  parser.root
