a couple more implicit objects in the source.

This commit is contained in:
Jeremy Ashkenas
2010-07-26 20:54:07 -04:00
parent 0aa36899a8
commit e638de5c7c
2 changed files with 2 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ exports.run = ((code, options) ->
# The real Lexer produces a generic stream of tokens. This object provides a
# thin wrapper around it, compatible with the Jison API. We can then pass it
# directly as a "Jison lexer".
parser.lexer = {
parser.lexer =
lex: ->
token = @tokens[@pos] or [""]
@pos += 1
@@ -69,7 +69,6 @@ parser.lexer = {
@tokens = tokens
@pos = 0
upcomingInput: -> ""
}
# Activate CoffeeScript in the browser by having it compile and evaluate
# all script tags with a content-type of `text/coffeescript`. This happens