-
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
Add support for show statement in cat parser #742
Conversation
These changes are need for eventual support of models like this one. |
I wouldn't call this "support". The show (as) feature is essentially ignored and I think you should implement it like that (i.e., change nothing in the backend and just the parser skip it).
|
The
Now all 3 variants are supported. Notice that for the last case, if we don't have a relation matching the term (as it is in the cat file you linked; |
Ok, but then the implementation should be proper. I think adding show-as properties directly to Btw. looking up the relation by name/term is pointless. The parser already has the relation in hand and could directly use it instead of taking its name/term, discarding the relation, and then forcing a lookup by term/name again (which currently also forces the unnamed relations to (wrongly) get their term as name!)
No, it does not because we have dead relation elimination that kills unused relations. While it is unlikely that you want to display a relation that is unused in the axioms, I think you still should account for this fact. |
Signed-off-by: Hernan Ponce de Leon <[email protected]>
d2a2678
to
c492999
Compare
I decided to refer the decision of what to do with the information coming from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea :)
Signed-off-by: Hernan Ponce de Leon <[email protected]> Co-authored-by: Hernan Ponce de Leon <[email protected]>
No description provided.