Code example for EventBus

0
 */ 
@Experimental 
public abstract class EventBusParser<V> 
    extends BaseParser<V> 
{ 
    protected final EventBus bus = new EventBus();
 
    /** 
     * Register a listener to the event bus 
     * 
     * <p>The canonical use of this method is to register a listener 
     * once you have created your parser, as in:</p> 
     * 
     * <pre> 
     *     final MyParser parser = Parboiled.createParser(MyParser.class); 
     *     parser.register(myListener); 
     * </pre> 
     * 
     * <p>It is also usable as an action; you can write rules such as:</p> 
     *