-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`elsif directive supported? #113
Comments
A very quick scan of ADMS's preprocessor lexer and parser shows that it supports only ifdef, ifndef, else, and endif, not elsif. Odd that it doesn't puke on the elsif even though its preprocessor lexer and parser don't recognize it. I did a quick test by creating:
and running it through admsXml:
So in fact it does emit an error on the elsif, just not a fatal one. And then essentially it does the wrong thing and passes both the if and elsif stuff through with a junk line (stripping elsif and leaving just the condition). |
May be to simple, but can we extend Should be similar to
|
Pretty sure there would be more to it than that. Need to modify the R_conditional section and provide means for handling multiple elsif blocks. I looked at it briefly in the hope that it would be simple enough to cram in and make a PR, but it's more than I'm willing to work on. |
LRM 2.4.1 allows:
With my admsXml version 2.3.7 I have the impression THAT code is never reached - falling through to other code.
In which file the directives are defined? Can I extend them?
The text was updated successfully, but these errors were encountered: