The coffee
utility. Handles command-line compilation of CoffeeScript
into various forms: saved into .js
files or printed to stdout, piped to
JSLint or recompiled every time the source is
saved, printed as a token stream or as the syntax tree, or launch an
diff --git a/documentation/docs/docco.css b/documentation/docs/docco.css
index 30c5617d..a510806b 100644
--- a/documentation/docs/docco.css
+++ b/documentation/docs/docco.css
@@ -18,6 +18,16 @@ p {
h1, h2, h3, h4, h5, h6 {
margin: 40px 0 15px 0;
}
+#container {
+ position: relative;
+}
+#background {
+ position: fixed;
+ top: 0; left: 580px; right: 0; bottom: 0;
+ background: #f5f5ff;
+ border-left: 1px solid #e5e5ee;
+ z-index: -1;
+}
#jump_to, #jump_page {
background: white;
-webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777;
@@ -58,58 +68,52 @@ table td {
border: 0;
outline: 0;
}
- #container {
- overflow: visible;
+ td.docs, th.docs {
+ max-width: 500px;
+ min-width: 500px;
+ min-height: 5px;
+ padding: 10px 30px 1px 50px;
+ vertical-align: top;
+ text-align: left;
}
- .divider {
- clear: both;
+ .docs pre {
+ margin: 15px 0 15px;
+ padding-left: 15px;
}
- td.docs, th.docs {
- max-width: 500px;
- min-width: 500px;
- min-height: 5px;
- padding: 10px 30px 1px 50px;
- vertical-align: top;
- text-align: left;
+ .docs p tt, .docs p code {
+ background: #f8f8ff;
+ border: 1px solid #dedede;
+ font-size: 12px;
+ padding: 0 0.2em;
}
- .docs pre {
- margin: 15px 0 15px;
- padding-left: 15px;
+ .octowrap {
+ position: relative;
+ }
+ .octothorpe {
+ font: 12px Arial;
+ text-decoration: none;
+ color: #454545;
+ position: absolute;
+ top: 3px; left: -20px;
+ padding: 1px 2px;
+ opacity: 0;
+ -webkit-transition: opacity 0.2s linear;
}
- .docs p tt, .docs p code {
- background: #f8f8ff;
- border: 1px solid #dedede;
- font-size: 12px;
- padding: 0 0.2em;
- }
- .octowrap {
- position: relative;
- }
- .octothorpe {
- font: 12px Arial;
- text-decoration: none;
- color: #454545;
- position: absolute;
- top: 3px; left: -20px;
- padding: 1px 2px;
- opacity: 0;
- -webkit-transition: opacity 0.2s linear;
+ td.docs:hover .octothorpe {
+ opacity: 1;
}
- td.docs:hover .octothorpe {
- opacity: 1;
- }
- td.code, th.code {
- padding: 14px 15px 16px 35px;
- width: 100%;
- vertical-align: top;
- background: #f5f5ff;
- border-left: 1px solid #e5e5ee;
+ td.code, th.code {
+ padding: 14px 15px 16px 35px;
+ width: 100%;
+ vertical-align: top;
+ background: #f5f5ff;
+ border-left: 1px solid #e5e5ee;
+ }
+ pre, tt, code {
+ font-size: 12px; line-height: 18px;
+ font-family: Monaco, Consolas, "Lucida Console", monospace;
+ margin: 0; padding: 0;
}
- pre, tt, code {
- font-size: 12px; line-height: 18px;
- font-family: Monaco, Consolas, "Lucida Console", monospace;
- margin: 0; padding: 0;
- }
/*---------------------- Syntax Highlighting -----------------------------*/
diff --git a/documentation/docs/grammar.html b/documentation/docs/grammar.html
index 98fe0d7b..b52665a1 100644
--- a/documentation/docs/grammar.html
+++ b/documentation/docs/grammar.html
@@ -1,4 +1,4 @@
-
grammar.coffee grammar.coffee The CoffeeScript parser is generated by Jison
+
grammar.coffee
grammar.coffee 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.
It can recognize LALR(1), LR(0), SLR(1), and LR(1)
diff --git a/documentation/docs/lexer.html b/documentation/docs/lexer.html
index 10f48a7d..95a31271 100644
--- a/documentation/docs/lexer.html
+++ b/documentation/docs/lexer.html
@@ -1,4 +1,4 @@
-
lexer.coffee lexer.coffee The CoffeeScript Lexer. Uses a series of token-matching regexes to attempt
+
lexer.coffee
lexer.coffee The CoffeeScript Lexer. Uses a series of token-matching regexes to attempt
matches against the beginning of the source code. When a match is found,
a token is produced, we consume the match, and start again. Tokens are in the
form:
diff --git a/documentation/docs/nodes.html b/documentation/docs/nodes.html
index bc23b3ce..fb709ccc 100644
--- a/documentation/docs/nodes.html
+++ b/documentation/docs/nodes.html
@@ -1,4 +1,4 @@
- nodes.coffee nodes.coffee if process ?
+ nodes.coffee
nodes.coffee if process ?
process . mixin require 'scope'
else
this . exports: this Some helper functions
Tabs are two spaces for pretty printing.
TAB: ' '
diff --git a/documentation/docs/optparse.html b/documentation/docs/optparse.html
index 8dd08ff9..98486a9b 100644
--- a/documentation/docs/optparse.html
+++ b/documentation/docs/optparse.html
@@ -1,4 +1,4 @@
- optparse.coffee optparse.coffee A simple OptionParser class to parse option flags from the command-line.
+
optparse.coffee
optparse.coffee A simple OptionParser class to parse option flags from the command-line.
Use it like so:
parser: new OptionParser switches, help_banner
diff --git a/documentation/docs/repl.html b/documentation/docs/repl.html
index 89495bb1..16d69f1b 100644
--- a/documentation/docs/repl.html
+++ b/documentation/docs/repl.html
@@ -1,4 +1,4 @@
- repl.coffee repl.coffee A very simple Read-Eval-Print-Loop. Compiles one line at a time to JavaScript
+
repl.coffee
repl.coffee A very simple Read-Eval-Print-Loop. Compiles one line at a time to JavaScript
and evaluates it. Good for simple tests, or poking around the Node.js API.
Using it looks like this:
diff --git a/documentation/docs/rewriter.html b/documentation/docs/rewriter.html
index 1e62cc14..e19f4de3 100644
--- a/documentation/docs/rewriter.html
+++ b/documentation/docs/rewriter.html
@@ -1,4 +1,4 @@
- rewriter.coffee rewriter.coffee this . exports: this unless process ? Tokens that must be balanced.
BALANCED_PAIRS: [[ '(' , ')' ], [ '[' , ']' ], [ '{' , '}' ], [ 'INDENT' , 'OUTDENT' ],
+ rewriter.coffee
rewriter.coffee this . exports: this unless process ? Tokens that must be balanced.
BALANCED_PAIRS: [[ '(' , ')' ], [ '[' , ']' ], [ '{' , '}' ], [ 'INDENT' , 'OUTDENT' ],
[ 'PARAM_START' , 'PARAM_END' ], [ 'CALL_START' , 'CALL_END' ],
[ 'INDEX_START' , 'INDEX_END' ], [ 'SOAKED_INDEX_START' , 'SOAKED_INDEX_END' ]] Tokens that signal the start of a balanced pair.
EXPRESSION_START: pair [ 0 ] for pair in BALANCED_PAIRS Tokens that signal the end of a balanced pair.
EXPRESSION_TAIL: pair [ 1 ] for pair in BALANCED_PAIRS Tokens that indicate the close of a clause of an expression.
EXPRESSION_CLOSE: [ 'CATCH' , 'WHEN' , 'ELSE' , 'FINALLY' ]. concat ( EXPRESSION_TAIL ) Tokens pairs that, in immediate succession, indicate an implicit call.
IMPLICIT_FUNC: [ 'IDENTIFIER' , 'SUPER' , ')' , 'CALL_END' , ']' , 'INDEX_END' ]
IMPLICIT_BLOCK : [ '->' , '=>' , '{' , '[' , ',' ]
diff --git a/documentation/docs/scope.html b/documentation/docs/scope.html
index 7b26534e..5cad7f79 100644
--- a/documentation/docs/scope.html
+++ b/documentation/docs/scope.html
@@ -1,4 +1,4 @@
- scope.coffee scope.coffee this . exports: this unless process ? Scope objects form a tree corresponding to the shape of the function
+
scope.coffee
scope.coffee this . exports: this unless process ? Scope objects form a tree corresponding to the shape of the function
definitions present in the script. They provide lexical scope, to determine
whether a variable has been seen before or if it needs to be declared.