Re: Newbie question on events

2022-04-26 Thread Rk
Thanks @Lukas for a very clear explanation. Thanks @Jeffrey for great summary. On Tuesday, April 26, 2022 at 9:15:47 AM UTC-7 jeffre...@gmail.com wrote: > Oops, I meant to type Lukas. Sorry. But anyway, thanks, thanks, thanks! > > On Tuesday, April 26, 2022 at 12:12:50 PM UTC-4 Jeffrey Kegler

Re: Newbie question on events

2022-04-26 Thread Jeffrey Kegler
Oops, I meant to type Lukas. Sorry. But anyway, thanks, thanks, thanks! On Tuesday, April 26, 2022 at 12:12:50 PM UTC-4 Jeffrey Kegler wrote: > Lucas, thanks for the excellent answer! > > To re-emphasize one of your points. In general, when designing a > Marpa::R2 application, use actions whe

Re: Newbie question on events

2022-04-26 Thread Jeffrey Kegler
Lucas, thanks for the excellent answer! To re-emphasize one of your points. In general, when designing a Marpa::R2 application, use actions when possible, and events when necessary. On Tue, Apr 26, 2022 at 5:01 AM Lukas Atkinson wrote: > On Tue, 26 Apr 2022 at 02:00, Rk wrote: > > When does o

Re: Newbie question on events

2022-04-26 Thread Lukas Atkinson
On Tue, 26 Apr 2022 at 02:00, Rk wrote: > When does one use events or actions? > > Are there distinct use case where events gets used vs actions? Marpa works in two phases: first the recognizer consumes the input. If this succeeds, we know that the input conforms to the grammar. Then, optionally,