
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 …
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 …
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 …
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.
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')
helpers.coffee - CoffeeScript
Helper function for extracting code from Literate CoffeeScript by stripping out all non-code blocks, producing a string of CoffeeScript code that can be compiled “normally.”
sourcemap.litcoffee - CoffeeScript
Maps locations in a single generated JavaScript file back to locations in the original CoffeeScript source file. This is intentionally agnostic towards how a source map might be represented on …
rewriter.coffee - coffeescript.org
The CoffeeScript language has a good deal of optional syntax, implicit syntax, and shorthand syntax. This can greatly complicate a grammar and bloat the resulting parse table.
nodes.coffee - CoffeeScript
Welcome to the hairiest method in all of CoffeeScript. Handles the inner loop, filtering, stepping, and result saving for array, object, and range comprehensions.