ZachBray/FunScript — pull request #24 by tpetricek (2012-12-14 15:30:34+00:00)
Title: Expose API for custom mappings

This change exposes the API that is needed to create custom mappings (that are not incldued in the `FunJS` core library). It also modifies the `compile` function to allow specifying custom compiler components.

There was already `compile` and `compileWithoutReturn` and I needed `compileWithComponents`, so I created a type with static method `Compiler.Compile` that can take optional parameters.

I'd suggest to replace `compile` and `compileWithoutReturn` with this static method (but that means changing the samples).