Skip to content
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

resolve symbol role conflict #5

Closed
athos opened this issue Jul 28, 2014 · 1 comment
Closed

resolve symbol role conflict #5

athos opened this issue Jul 28, 2014 · 1 comment

Comments

@athos
Copy link
Owner

athos commented Jul 28, 2014

imported from athos/genuine-highlighter#6

Each symbol has roles among special, macro, var, local or symbol (for now). And we now temporarily assume that every symbol has only a single role.
Taking into account more complicated situations (e.g. where a symbol would be put into multiple places through macro expansion), we should allow symbols to take more than a role. To this end, the extractor must be equipped with a kind of conflict resolusion mechanism.

@athos
Copy link
Owner Author

athos commented Aug 20, 2014

Recently, we noticed we don't need to resolve symbol conflict at all at the analyzer level. In fact, users might want to know all of the possible symbol roles in some cases.

So, we concluded what we need to do is to collect possible symbol roles and annotate them to the symbol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant