passing through values with line number information that look and act like Ruby natives

This commit is contained in:
Jeremy Ashkenas
2009-12-17 09:37:42 -05:00
parent 146b5694c2
commit 1590713576
5 changed files with 70 additions and 34 deletions

View File

@@ -123,7 +123,7 @@ class Lexer
end
def token(tag, value)
@tokens << [tag, value]
@tokens << [tag, Value.new(value, @line)]
end
def last_value