tests are now passing on symbology

This commit is contained in:
Jeremy Ashkenas
2010-07-24 22:23:37 -07:00
parent 492ee57b8f
commit 88847df70b
42 changed files with 514 additions and 522 deletions

View File

@@ -30,7 +30,7 @@ lexer = new Lexer
# Compile a string of CoffeeScript code to JavaScript, using the Coffee/Jison
# compiler.
exports.compile = compile = (code, options) ->
options = or {}
options ||= {}
try
(parser.parse lexer.tokenize code).compile options
catch err
@@ -61,7 +61,7 @@ exports.run = ((code, options) ->
parser.lexer = {
lex: ->
token = @tokens[@pos] or [""]
@pos = + 1
@pos += 1
this.yylineno = token[2]
this.yytext = token[1]
token[0]