--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "A parser that watches the current parser result without changing it. The following assert will succeed:"
- !ruby/struct:SM::Flow::P 
  body: char(?a).repeat(2) &gt;&gt; watchn{|x,y|assert_equal([?a,?a], [x,y])}
- !ruby/struct:SM::Flow::P 
  body: Slightly different from <em>watch</em>, <em>watchn</em> expands the current parser result before passing it into the associated block.
full_name: RParsec::Parsers#watchn
is_singleton: false
name: watchn
params: (&block)
visibility: public
