class RDoc::Markdown::Literals

def grow_lr(rule, args, start_pos, m)

def grow_lr(rule, args, start_pos, m)
  while true
    @pos = start_pos
    @result = m.result
    if args
      ans = __send__ rule, *args
    else
      ans = __send__ rule
    end
    return nil unless ans
    break if @pos <= m.pos
    m.move! ans, @pos, @result
  end
  @result = m.result
  @pos = m.pos
  return m.ans
end