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.

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.