We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given grammar:
Priv. Decl ::= "private" "{" [Decl] "}" ; separator Decl ";" ; layout "private" ;
The following is accepted but should not, without top-level layout:
private private
This is parsed as:
Priv [Priv []]
One could argue that this is a case of NondecreasingIndentation, but it is not in line with the following example:
NondecreasingIndentation
private private private
This gives, as naturally expected:
Priv [Priv [],Priv []]
Finally, this fails (as naturally expected):
private private private private
EDIT: Apparently, this is a feature, not a bug: https://github.com/BNFC/bnfc/blob/19151603ff5b0fd8fab3b1a6892321246362e76c/testing/regression-tests/194_layout/good05.in
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given grammar:
The following is accepted but should not, without top-level layout:
This is parsed as:
One could argue that this is a case of
NondecreasingIndentation
, but it is not in line with the following example:This gives, as naturally expected:
Finally, this fails (as naturally expected):
EDIT: Apparently, this is a feature, not a bug: https://github.com/BNFC/bnfc/blob/19151603ff5b0fd8fab3b1a6892321246362e76c/testing/regression-tests/194_layout/good05.in
The text was updated successfully, but these errors were encountered: