Re: execute/parse IF ELSE ENDIF
Jens Kallup <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Larry, thank you for your reply. With IF, I mean spirit qi phoenix if_ so that I can write an interpreter, that handle IF ENDIF or IF ELSE ENDIF on the fly. because the dangling else... Am 06.02.2017 um 06:04 schrieb Larry Evans: > On 02/05/2017 10:47 PM, Larry Evans wrote: >> On 02/05/2017 03:17 PM, Jens Kallup wrote: >>> Hello, >>> >>> is it possible to parse the construct: IF stmts *ELSE stmts ENDIF >> Don't you mean, using "somewhat" spirit syntax: >> >> stmt = if_stmt | ... ; >> stmts = *stmt ; >> if_stmt = IF >> stmts >> *(ELSE stmts) >> ENDIF ; > OOPS! The above is missing a >> after ELSE. > > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Spirit-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/spirit-general ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot