mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
nodes.coffee is continuing to roll along -- maybe a tenth implemented
This commit is contained in:
@@ -232,13 +232,13 @@ lex::token: (tag, value) ->
|
||||
|
||||
# Look at a tag in the current token stream.
|
||||
lex::tag: (index, tag) ->
|
||||
return unless tok: this.tokens[this.tokens.length - (index || 1)]
|
||||
return unless tok: this.tokens[this.tokens.length - (index or 1)]
|
||||
return tok[0]: tag if tag?
|
||||
tok[0]
|
||||
|
||||
# Look at a value in the current token stream.
|
||||
lex::value: (index, val) ->
|
||||
return unless tok: this.tokens[this.tokens.length - (index || 1)]
|
||||
return unless tok: this.tokens[this.tokens.length - (index or 1)]
|
||||
return tok[1]: val if val?
|
||||
tok[1]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user