Skip to content

parser: reject reserved keywords in qualified identifiers#52

Open
Franklin-Qi wants to merge 1 commit into
uutils:mainfrom
Franklin-Qi:fix-bug#37-Parser-unenforced-non-keyword-names-on-namespaced-identifiers
Open

parser: reject reserved keywords in qualified identifiers#52
Franklin-Qi wants to merge 1 commit into
uutils:mainfrom
Franklin-Qi:fix-bug#37-Parser-unenforced-non-keyword-names-on-namespaced-identifiers

Conversation

@Franklin-Qi

Copy link
Copy Markdown
Contributor

Validate namespace and literal parts of ns::name against gawk's reserved keyword list when building identifiers, including @namespace directives.

Closes: #37

Validate namespace and literal parts of ns::name against gawk's reserved
keyword list when building identifiers, including @namespace directives.

Closes: uutils#37

@Alonely0 Alonely0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice, but scales very poorly. As I mentioned in the Discord, I have been doing some testing with the other option I had mentioned (separating the path as a different token), and it integrates a lot better with Logos, resulting in a negative diff; I should be able to get it polished by Friday. However, the tests are great and we can keep them. Would you be okay just keeping the tests, so we can merge this after I push? Ty!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parser: unenforced non-keyword names on namespaced identifiers

2 participants