Reset the lexer when resetting the parser.

Also removed the unused @lines instance variable.
This commit is contained in:
Yorick Peterse 2014-04-25 00:15:11 +02:00
parent 83ff0e6656
commit f53fe4ed7c
1 changed files with 3 additions and 2 deletions

View File

@ -182,8 +182,9 @@ end
# Resets the internal state of the parser. # Resets the internal state of the parser.
# #
def reset def reset
@lines = [] @line = 1
@line = 1
@lexer.reset
end end
## ##