Re: How to code a IF cond ELSE ENDIF block?
Seth <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 22-11-16 22:31, Jens Kallup wrote:
> Hello,
>
> like the topic says: How can I code IF ELSE ENDIF statement?
>
> symbol_def_if %= symbol_def_if_inner;
> symbol_def_if_inner %=
> (symbol_if > symbol_expr > lit("==") > symbol_expr >> symbol_else >
> symbol_endif ) |
> (symbol_if > symbol_expr > lit("==") > symbol_expr >> symbol_else >>
> *symbol_def_stmts > symbol_endif ) |
> (symbol_if > symbol_expr > lit("==") > symbol_expr >>
> *symbol_def_stmts > symbol_endif ) |
> (symbol_if > symbol_expr > lit("==") > symbol_expr
> >> *symbol_def_stmts >> symbol_else
> >> *symbol_def_stmts > symbol_endif )
> ;
>
>
> TIA
>
> Jens
>
>
I really don't think this is a viable question. It looks like you're
asking people to write code for you.
I you posted this on https://stackoverflow.com (with the snippet!) you
might serve others with the question because others could find it.
------------------------------------------------------------------------------