 exports.plainPrettyPrint = plainPrettyPrint
 exports.labelDocs = labelDocs
 exports.builtInLibraryNumLines = library.split('\n').length + immutable.split('\n').length
-
-# exports.compileModule = (source) ->
-#   """
-#   #{library}
-#   var exports = {};
-#   #{compileDefinitionsInModule source}
-#   exports"""
 
 exports.library = library
 



exports.compileTopLevel = compileTopLevel
exports.compileExpression = compileExpression
exports.findAvailableTypes = findAvailableTypes
exports.findMatchingDefinitions = findMatchingDefinitions

  # types: typeEnumaration ctx
  errors: errors

compileModule = (moduleName = '@unnamed') ->
  js: library + immutable + (listOfLines map lookupJs, (setToArray runtimeDependencies moduleName))

compileExpression = (source, moduleName = '@unnamed') ->
  ast = (astFromSource "(#{source})", -1, -1)
  if _empty _validTerms ast
