 _ = require 'lodash'
 jsStringEscape = require 'js-string-escape'
 runtime = require './runtime'
+product = require '../package.json'
 push = Array.prototype.push
 
 ###

  if topRule?
    result.push "return $global['#{topRule}']();\n"

  # module.exports = ... {
  result.push '};'

  result.join ''

# TODO: Study extensibility model (user function)
composable = ['Mapping']

types =

  # console.dir rules, colors: true, depth:10
  result = []

  # header
  result.push '// Generated by ', product.name, ' ', product.version, '\n'

  # exportable
  result.push 'module.exports = function($config) {\n'

  # fallback
