mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
just namespacing the coffeescript compiler
This commit is contained in:
parent
dec9950649
commit
95f3e2f79f
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue