--- !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) &gt;&gt; watch{|x|assert_equal(?a, x)}
- !ruby/struct:SM::Flow::P 
  body: "watch can also be used as a handy tool to print trace information, for example:"
- !ruby/struct:SM::Flow::P 
  body: some_parser &gt;&gt; watch {puts &quot;some_parser succeeded.&quot;}
full_name: RParsec::Parsers#watch
is_singleton: false
name: watch
params: (&block)
visibility: public
