Reset the lexer when resetting the parser.
Also removed the unused @lines instance variable.
This commit is contained in:
parent
83ff0e6656
commit
f53fe4ed7c
|
@ -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
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue