waypoint on lexing... parses basic strings, no indentation yet

This commit is contained in:
Jeremy Ashkenas
2010-01-30 14:00:23 -05:00
parent eff2f4b520
commit f19360c6b9
3 changed files with 285 additions and 73 deletions

View File

@@ -229,8 +229,7 @@ module CoffeeScript
# Helpers ==========================================================
# Add a token to the results, taking note of the line number, and
# immediately-preceding comment.
# Add a token to the results, taking note of the line number.
def token(tag, value)
@tokens << [tag, Value.new(value, @line)]
end