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

Maint/issue 14 end production #19

Merged
merged 3 commits into from
Nov 1, 2017
Merged

Conversation

shnewto
Copy link
Owner

@shnewto shnewto commented Nov 1, 2017

A couple notes on this PR that aren't captured in that last commit message.

  1. Since the ; is optional now, I removed it from the Display output, my preference is to default to not showing it.
  2. I added a nom-y macro of my own. The behavior was I interested in was processing an undefined amount of input without actually consuming any of it. nom's peek macro lets you "look ahead" but if it finds the pattern it consumes it.

…ike it as a final solution but do as a step toward one
Prior to this commit there was a requirement that a `;` was used
to denote the end of a production. This had the potential to
lead to incompatibilities with grammars that weren't doctored for
use with this library. After this commit, the `;` remains an optional
end of production indicator but is no longer required.

End of production is inferred by the end of an expression.
End of an expressions is denoted by the following:
- eol
- `;`
- `|`
- the start of the next production: `<...> ::=`
@coveralls
Copy link

coveralls commented Nov 1, 2017

Coverage Status

Coverage increased (+0.8%) to 83.913% when pulling 8273783 on maint/issue-14-end-production into c30232f on 0.2.0-devel.

@shnewto shnewto added this to the 0.2.0 milestone Nov 1, 2017
Copy link
Collaborator

@CrockAgile CrockAgile left a comment

Choose a reason for hiding this comment

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

Looks good to me! Still have to study up on nom but seems reasonable and good tests

@shnewto
Copy link
Owner Author

shnewto commented Nov 1, 2017

closes #14

@shnewto shnewto merged commit 21338d3 into 0.2.0-devel Nov 1, 2017
@shnewto shnewto deleted the maint/issue-14-end-production branch November 1, 2017 02:42
shnewto added a commit that referenced this pull request Jul 29, 2020
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.

3 participants