inversion of control, Event-Driven parsing