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

Redesign identifier token #67

Merged
merged 1 commit into from
Dec 3, 2020
Merged

Redesign identifier token #67

merged 1 commit into from
Dec 3, 2020

Conversation

mthalman
Copy link
Owner

@mthalman mthalman commented Dec 3, 2020

Redesigns the class structure of IdentifierToken. This changes the class to be abstract and it now has two derived class: StageName and Variable. This was done in order for identifiers to have parsing of the input to handle things like line continuations. Each identifier type has its own syntax (i.e. allowed characters) so this is encapsulated in the derived classes.

This also redesigns the ImageName class. Its constituent components were originally publicly exposed and derived from IdentifierToken. This was incorrect. They now derive from LiteralToken and have been made private. The ImageName class no longer exposes its constituent tokens other than via the general purpose Tokens property.

@mthalman mthalman merged commit 9987696 into main Dec 3, 2020
@mthalman mthalman deleted the identifier branch December 3, 2020 02:00
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.

1 participant