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]
|
yield [-1, -1]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
##
|
||||||
|
# @see [LL::Driver#parse]
|
||||||
|
#
|
||||||
|
def parse
|
||||||
|
retval = super
|
||||||
|
|
||||||
|
reset
|
||||||
|
|
||||||
|
return retval
|
||||||
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# @param [Array] children
|
# @param [Array] children
|
||||||
# @return [Oga::XML::Document]
|
# @return [Oga::XML::Document]
|
||||||
|
|
|
@ -84,9 +84,7 @@ module Oga
|
||||||
def parse(&block)
|
def parse(&block)
|
||||||
@block = block
|
@block = block
|
||||||
|
|
||||||
yyparse(self, :yield_next_token)
|
super
|
||||||
|
|
||||||
reset
|
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue