mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 18:44:56 -05:00
a couple more implicit objects in the source.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user