
CoffeeScript
CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way. The golden rule of CoffeeScript is: “It’s just JavaScript.” The code compiles one-to-one into the equivalent …
Announcing CoffeeScript 2
This new release of the CoffeeScript language and compiler aims to bring CoffeeScript into the modern JavaScript era, closing gaps in compatibility with JavaScript while preserving the clean …
coffeescript.coffee
CoffeeScript can be used both on the server, as a command-line compiler based on Node.js/V8, or to run CoffeeScript directly in the browser. This module contains the main entry functions for …
command.coffee - CoffeeScript
Handles command-line compilation of CoffeeScript into various forms: saved into .js files or printed to stdout or recompiled every time the source is saved, printed as a token stream or as …
helpers.coffee - CoffeeScript
Simple function for inverting Literate CoffeeScript code by putting the documentation in comments, producing a string of CoffeeScript code that can be compiled “normally”.
repl.coffee
Collect referenced variable names just like in CoffeeScript.compile. referencedVars = (token[1] for token in tokens when token[0] is 'IDENTIFIER')
scope.litcoffee - coffeescript.org
The Scope class regulates lexical scoping within CoffeeScript. As you generate code, you create a tree of scopes in the same shape as the nested function bodies.
index.coffee - CoffeeScript
Pass a reference to Babel into the compiler, so that the transpile option is available in the Node API. We need to do this so that tools like Webpack can require('coffeescript') and build …
grammar.coffee - CoffeeScript
The CoffeeScript parser is generated by Jison from this grammar file. Jison is a bottom-up parser generator, similar in style to Bison, implemented in JavaScript.
lexer.coffee - coffeescript.org
The Lexer class reads a stream of CoffeeScript and divvies it up into tagged tokens. Some potential ambiguity in the grammar has been avoided by pushing some extra smarts into the …