 path = require 'path'
 fs = require 'fs'
+CoffeeScript = require 'coffee-script'
 csvParse = require 'csv-parse'
 xmldom = require 'xmldom'
 DOMParser = xmldom.DOMParser

      throw new UserException "svgtiler: unrecognized extension in filename #{filename}"

class Mapping extends Input

class ASCIIMapping extends Mapping
  @parse: (data) ->
    map = new @
    for line in splitIntoLines data
      separator = whitespace.exec line
      continue unless separator?


extension_map =
  '.txt': ASCIIMapping
  '.js': JSMapping
  '.coffee': CoffeeMapping
  '.asc': ASCIIDrawing
  '.ssv': SSVDrawing
