fix virtual positions for symbols and rules generated by inductive#1448
Open
fblanqui wants to merge 3 commits into
Open
fix virtual positions for symbols and rules generated by inductive#1448fblanqui wants to merge 3 commits into
fblanqui wants to merge 3 commits into
Conversation
Member
Author
|
@sacerdot Is it all right in index_sym to use sym_pos instead of sym_decl ? |
Collaborator
|
No, I don't think so. The position corresponds to what it is fetched back and printed in the list of results. We want to print the whole symbol declaration, not just the name. |
Member
Author
|
I see. I'm going to revert the change on indexing.ml. But, then, we need to use something better than virtual positions to order declarations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remark on sym_pos vs sym_decl_pos:
Virtual positions are used to order symbol and rule declarations in commands exporting signatures. This is a hack that should be changed.
Modifications:
Remaining problems:
TODO in a future PR: add a new integer field sym_offset to order declarations wrt sym_decl_pos+sym_offset