just namespacing the coffeescript compiler

This commit is contained in:
Jeremy Ashkenas 2010-02-17 23:25:17 -05:00
parent dec9950649
commit 95f3e2f79f
4 changed files with 4 additions and 4 deletions

View File

@ -854,7 +854,7 @@ print reverse 'tpircseeffoc'</textarea>
var source = document.getElementById('repl_source').value;
var js = '';
try {
js = compile(source, {no_wrap: true});
js = CoffeeScript.compile(source, {no_wrap: true});
} catch(error) {
alert(error);
}

View File

@ -1725,7 +1725,7 @@ html <span class="Keyword">=</span> <span class="String"><span class="String">&q
var source = document.getElementById('repl_source').value;
var js = '';
try {
js = compile(source, {no_wrap: true});
js = CoffeeScript.compile(source, {no_wrap: true});
} catch(error) {
alert(error);
}

View File

@ -7,9 +7,9 @@
lexer = new (require('lexer').Lexer)();
parser = require('parser').parser;
} else {
this.exports = this;
lexer = new Lexer();
parser = exports.parser;
this.exports = (this.CoffeeScript = {});
}
// Thin wrapper for Jison compatibility around the real lexer.
parser.lexer = {

View File

@ -5,9 +5,9 @@ if process?
lexer: new (require('lexer').Lexer)()
parser: require('parser').parser
else
this.exports: this
lexer: new Lexer()
parser: exports.parser
this.exports: this.CoffeeScript: {}
# Thin wrapper for Jison compatibility around the real lexer.
parser.lexer: {