Fixed the pull parser for the XML LL parser.
This commit is contained in:
parent
5eed0d31d6
commit
a023b35e78
|
@ -262,6 +262,17 @@ string_body_follow
|
|||
yield [-1, -1]
|
||||
end
|
||||
|
||||
##
|
||||
# @see [LL::Driver#parse]
|
||||
#
|
||||
def parse
|
||||
retval = super
|
||||
|
||||
reset
|
||||
|
||||
return retval
|
||||
end
|
||||
|
||||
##
|
||||
# @param [Array] children
|
||||
# @return [Oga::XML::Document]
|
||||
|
|
|
@ -84,9 +84,7 @@ module Oga
|
|||
def parse(&block)
|
||||
@block = block
|
||||
|
||||
yyparse(self, :yield_next_token)
|
||||
|
||||
reset
|
||||
super
|
||||
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue