To install, first make sure you have a working copy of the latest stable version of You can then install Coffee Script globally with npm: If you'd prefer to install the latest master version of Coffee Script, you can clone the Coffee Script source repository from Git Hub, or download the source directly.To install the latest master Coffee Script compiler with npm: extension, you can write it as a Markdown document — a document that also happens to be executable Coffee Script code.
Just for kicks, a little bit of the compiler is currently implemented in this fashion: See it as a document, raw, and properly highlighted in a text editor.
I'm fairly excited about this direction for the language, and am looking forward to writing (and more importantly, reading) more programs in this style.
More information about Literate Coffee Script, including an example program, are available in this blog post.
Overview Installation Usage Literate Coffee Script Language Reference Literals: Functions, Objects and Arrays Lexical Scoping and Variable Safety If, Else, Unless, and Conditional Assignment Splats...
Loops and Comprehensions Array Slicing and Splicing Everything is an Expression Operators and Aliases Classes, Inheritance, and Super Destructuring Assignment Bound and Generator Functions Embedded Java Script Switch and Try/Catch Chained Comparisons String Interpolation, Block Strings, and Block Comments Block Regular Expressions Cake, and Cakefiles Source Maps "text/coffeescript" Script Tags Books, Screencasts, Examples and Resources Change Log Grammar Rules — src/grammar Lexing Tokens — src/lexer The Rewriter — src/rewriter The Syntax Tree — src/nodes Lexical Scope — src/scope Helpers & Utility Functions — src/helpers The Coffee Script Module — src/coffee-script Cake & Cakefiles — src/cake "coffee" Command-Line Utility — src/command Option Parsing — src/optparse Interactive REPL — src/repl Source Maps — src/sourcemap Coffee Script is a little language that compiles into Java Script.