UNFINISHED = ['\\', '.', '?.', '?::', 'UNARY', 'MATH', 'UNARY_MATH', '+', '-',
'**', 'SHIFT', 'RELATION', 'COMPARE', '&', '^', '|', '&&', '||',
- 'BIN?', 'THROW', 'EXTENDS', 'DEFAULT']diff --git a/docs/v1/annotated-source/grammar.html b/docs/v1/annotated-source/grammar.html index ab85442a..c5b03043 100644 --- a/docs/v1/annotated-source/grammar.html +++ b/docs/v1/annotated-source/grammar.html @@ -952,6 +952,7 @@ and optional references to the superclass.
o 'EXPORT Identifier = INDENT Expression OUTDENT', -> new ExportNamedDeclaration new Assign $2, $5, null, moduleDeclaration: 'export' o 'EXPORT DEFAULT Expression', -> new ExportDefaultDeclaration $3 + o 'EXPORT DEFAULT INDENT Object OUTDENT', -> new ExportDefaultDeclaration new Value $4 o 'EXPORT EXPORT_ALL FROM String', -> new ExportAllDeclaration new Literal($2), $4 o 'EXPORT { ExportSpecifierList OptComma } FROM String', -> new ExportNamedDeclaration new ExportSpecifierList($3), $7 ] diff --git a/docs/v1/annotated-source/lexer.html b/docs/v1/annotated-source/lexer.html index 998269da..7eecdb45 100644 --- a/docs/v1/annotated-source/lexer.html +++ b/docs/v1/annotated-source/lexer.html @@ -2326,7 +2326,7 @@ avoid an ambiguity in the grammar.UNFINISHED = ['\\', '.', '?.', '?::', 'UNARY', 'MATH', 'UNARY_MATH', '+', '-',
'**', 'SHIFT', 'RELATION', 'COMPARE', '&', '^', '|', '&&', '||',
- 'BIN?', 'THROW', 'EXTENDS', 'DEFAULT']CoffeeScript is a little language that compiles into JavaScript. Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. 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 JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript.
The CoffeeScript compiler goes to great lengths to generate output JavaScript that runs in every JavaScript runtime, but there are exceptions. Use generator functions, for…from, or tagged template literals only if you know that your target runtimes can support them. If you use modules, you will need to use an additional tool to resolve them.
Latest 1.x Version: 1.12.7
+Latest 1.x Version: 1.12.8
npm install -g coffeescript
Upgrade to CoffeeScript 2! It adds support for ES2015 classes, async/await, JSX, object rest/spread syntax, and JavaScript generated using modern syntax. Learn more.
coffee-script package encouraging people to use the coffeescript NPM package instead.export default followed by an implicit object that contains an explicit object, for example exportedMember: { obj... }.[a?.b...]) or expressions.