event-driven programming, Event-Driven parsing