Skip to content

Commit

Permalink
0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
satyr committed May 2, 2011
1 parent 751f20b commit 4d51b68
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,18 @@ Coco tries to amend them, entwining good parts of both.

## Changelog

### 0.5.0b
### 0.5.0
- Added `**` operator.
- Overloaded `+`/`-`/`/` (in addition to `*`) for arrays and strings.
- Revised `let`: `let (a) ~>` => `let a then`
- Allowed underscores within number literals.
- Major regex changes:
- Dieted heregex: `/// re ///` => `// re //`
- Allowed leading whitespace in normal regex literals when unambiguous.
- No longer accepts invalid regexes.
- `->` is now optional when `function` is used.
- `case` accepts comma-separated tests again.
- `return`/`throw` can now take a block.
- REPL now uses _^J_ to continue lines.

### 0.4.2
Expand Down
7 changes: 3 additions & 4 deletions extras/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ for use in any platform that supports JavaScript.
[WSH](http://en.wikipedia.org/wiki/Windows_Script_Host).
Try dropping .co files if you're on Windows.

- Works as a JS Module for XUL Applications. e.g.:
Components.utils.import('resource://xqjs/coco.js');
Coco.compile(code);
ref. <https://developer.mozilla.org/en/Using_JavaScript_code_modules>
- Works as a [JS Module for XUL Applications](https://developer.mozilla.org/en/Using_JavaScript_code_modules).

Components.utils.import('resource://xqjs/coco.js')
var js = Coco.compile(co)

mode-coco.js
------------
Expand Down
4 changes: 2 additions & 2 deletions extras/coco.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/coco.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parser.lexer = {
return '';
}
};
exports.VERSION = '0.5.0b';
exports.VERSION = '0.5.0';
exports.compile = function(code, options){
var that;
try {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
,"description" : "Unfancy CoffeeScript"
,"keywords" : ["language", "compiler", "coffeescript", "javascript"]
,"author" : "satyr <murky.satyr@gmail.com> (http://satyr.github.com)"
,"version" : "0.4.2"
,"version" : "0.5.0"
,"homepage" : "http://satyr.github.com/coco/"
,"repository" : {"type": "git", "url": "git://github.com/satyr/coco.git"}
,"licenses" :
Expand Down
2 changes: 1 addition & 1 deletion src/coco.co
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ parser import
upcomingInput : -> ''

exports import
VERSION: \0.5.0b
VERSION: \0.5.0

# Compiles a string of Coco code to JavaScript.
compile: (code, options) ->
Expand Down

0 comments on commit 4d51b68

Please sign in to comment.