-
Notifications
You must be signed in to change notification settings - Fork 44
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
Improve description of SIMPLICITY_ERR_HIDDEN #205
Comments
HIDDEN children are illegal if they don't occur as part of an assertion. Agreed, this text should be improved. |
illegal HIDDEN children is formally defined in Lines 308 to 314 in 5e79763
I suppose I can break the various conditions of well-formedness into their own names. But I'm not going to copy the entire formal definition into the error message. Let me see what I can do. |
Maybe "The parent of a hidden node is not an assertion." Assertions are defined to be case nodes with one left or right hidden child. |
simplicity/C/deserialize.c
Line 46 in 5e79763
It is unclear what illegal children are.
Non-case nodes may not have hidden children, so these children are illegal. However, a case node may not have two hidden children, so these children are also illegal. SIMPLICITY_ERR_HIDDEN is returned in both cases.
The text was updated successfully, but these errors were encountered: