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

Left-factor grammar for domains #647

Merged
merged 2 commits into from
Jul 20, 2019
Merged

Conversation

Gabriella439
Copy link
Contributor

These rules should be equivalent but more amenable to
recursive descent parsers and bulk parsing operators

These rules should be equivalent but more amenable to
recursive descent parsers and bulk parsing operators
@singpolyma
Copy link
Collaborator

singpolyma commented Jul 17, 2019 via email

@Gabriella439
Copy link
Contributor Author

@singpolyma: I believe that is still the case because a set of dashes has to be followed by one or more ALPHANUM characters

@Nadrieril
Copy link
Member

If I'm not mistaken, this is not equivalent for PEG parsers, but you're actually fixing a bug: previously, a PEG parser would have failed to parse a domain with a trailing period (like foo.bar.) because of greediness. Now it will parse it correctly.

@singpolyma
Copy link
Collaborator

singpolyma commented Jul 17, 2019 via email

@Gabriella439 Gabriella439 merged commit 40fce66 into master Jul 20, 2019
@Gabriella439 Gabriella439 deleted the gabriel/left_factor_domain branch July 20, 2019 17:42
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.

None yet

4 participants