Package Exports
- toffee-script
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (toffee-script) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ToffeeScript
ToffeeScript is a CoffeeScript dialect with Asynchronous Grammar
Features
- Asynchronous everywhere
- Condition: If, Switch
- Loop: For In, For Of, While with guard
when - Mathematics
- Logical Operation
- Auto Callback
- Regexp Operator
=~and matches\~,\&,\0~`\9` - High efficent code generated.
- Sourcemap Supported.
- Follow up to CoffeeScript 1.6.2 so far
Code Examples
Left: ToffeeScript
Right: Generated JavaScript
Basic
x, y = a! b console.log x, y |
var x, y, _this = this; |
if i x = a! else y = b! console.log x, y |
var x, y, _$$_0, _this = this; |
xs = for i in [1..3] when i > 2 a! |
var i, xs, _this = this; |
x = a! + b! * c! |
var x, _this = this; |
A = a: a b: b! c: c |
var A, _this = this; |
x = a! || b! console.log x |
var x, _this = this; |
a = (autocb) -> return 3 |
var a; |
a = (autocb) -> return null, 3 |
var a; |
if a =~ b || b =~ c \~ \& \0 \9 |
var __matches; |