-
Notifications
You must be signed in to change notification settings - Fork 8
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
Parsing of INTERFACE without BOX followed by another INTERFACE fails #406
Comments
The script
fails with error message:
|
The script
fails with error message:
|
DiagnosisThe problem is, the parser does not know when the first INTERFACE statement is done. It has some optional stuff at the rear of the statement. Solutions
|
@stefjoosten I would like your opinion please |
What purpose is served by an INTERFACE without BOX? @RieksJ, do you have a use-case for that? |
How about an optional ENDINTERFACE statement. Low user impact but enables us to have interfaces without boxes. Stef, for now I have already two use cases.
The ignored part is not needed because the interface expression
A final argument: sub interfaces can have no box and interfaces and subinterfaces are the same (it's recursive). So let's turn it around, why prevent interfaces from having no box? |
An optional keyword is no solution. Then parsing remains a pain. since there is a usecase for this situation, I agree that something has to be done. I suggest the following:
|
As discussed earlier, allowing an empty box would also be ok. So:
I personally don't like the NONE option. But that's a matter of taste I guess. |
Instead of the introduction of the keyword NONE, I enabled the list of the BOX [ ] construction to be empty. |
…g_of_INTERFACE_without_BOX Feature/issue #406 parsing of interface without box
When we have two succesive INTERFACE definitions, where the first one has no BOX defined, the parser complains, while it can be perfectly sound.
The text was updated successfully, but these errors were encountered: