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

Lex atoms with one rules instead of pieces #137

Merged
merged 2 commits into from
Jun 22, 2015

Conversation

KronicDeth
Copy link
Owner

Fixes #133

Atom lexing was parsing the ATOM_START or OPERATOR first and only if ATOM_START was the longer match, did it try to match the ATOM_MIDDLE and ATOM_END. I removed this extra state and have ATOM match all three ATOM_* parts using the same pattern as used in IDENTIFIER, which means that operators that prefix longer atoms no longer stop the lexing of the atom fragment.

Atom lexing was parsing the ATOM_START or OPERATOR first and only if
ATOM_START was the longer match, did it try to match the ATOM_MIDDLE and
ATOM_END.  I removed this extra state and have ATOM match all three
ATOM_* parts using the same pattern as used in IDENTIFIER, which means
that operators that prefix longer atoms no longer stop the lexing of the
atom fragment.
@KronicDeth KronicDeth self-assigned this Jun 22, 2015
@KronicDeth KronicDeth added this to the v1.0.0 milestone Jun 22, 2015
@KronicDeth KronicDeth merged commit 51bc8dc into master Jun 22, 2015
KronicDeth added a commit that referenced this pull request Jun 22, 2015
@KronicDeth KronicDeth deleted the bug/133/operators-prefixing-identifiers branch June 22, 2015 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shorter operator names are being favored over longer identifier names for atoms
1 participant