mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 11:01:25 -05:00
working 'Try CoffeeScript' in the docs
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# Set up for both the browser and the server.
|
||||
if process?
|
||||
process.mixin require './nodes'
|
||||
path: require('path')
|
||||
@@ -23,6 +24,10 @@ parser.lexer: {
|
||||
showPosition: -> @pos
|
||||
}
|
||||
|
||||
# Improved error messages.
|
||||
parser.parseError: (message, hash) ->
|
||||
throw new Error 'Unexpected ' + hash.token + ' on line ' + hash.line
|
||||
|
||||
exports.VERSION: '0.5.0'
|
||||
|
||||
# Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
|
||||
@@ -78,7 +83,3 @@ exports.ruby_compile_files: (paths, callback) ->
|
||||
return unless message
|
||||
puts message
|
||||
throw new Error "CoffeeScript compile error"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user