Fixed the pull parser for the XML LL parser.

This commit is contained in:
Yorick Peterse 2015-02-14 22:52:17 +01:00
parent 5eed0d31d6
commit a023b35e78
2 changed files with 12 additions and 3 deletions

View File

@ -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]

View File

@ -84,9 +84,7 @@ module Oga
def parse(&block)
@block = block
yyparse(self, :yield_next_token)
reset
super
return
end