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

Add a handful of backwards compatible extensions: #2

Merged
merged 3 commits into from May 8, 2022

Conversation

wilbowma
Copy link
Contributor

@wilbowma wilbowma commented May 7, 2022

I really like the package; it's a much better interface than alternatives, and better than my hand-rolled attempts. I found myself adding some features I commonly need in my work, so I thought I'd offer them upstream. Sorry for the macro commit.

Examples and documentation are included: https://github.com/wilbowma/simplebnf/blob/master/simplebnf-doc.pdf

  1. Support set membership declarations in the grammar, useful for defining
    infinite values like variables or natural number literals as part of the
    grammar.
  2. Add LHS annotations.
  3. Add optional argument for specifying tabular alignment.
  4. Add support for non-line-breaking RHS productions.
  5. Add optional arguments for parsing breaking vs non-breaking productions.

1. Support set membership declarations in the grammar, useful for defining
   infinite values like variables or natural number literals as part of the
   grammar.
2. Add LHS annotations.
3. Add optional argument for specifying tabular alignment.
4. Add support for non-line-breaking RHS productions.
5. Add optional arguments for parsing breaking vs non-breaking productions.
@Zeta611
Copy link
Owner

Zeta611 commented May 8, 2022

These enhancements seem very useful for me as well!
I will upload the updated version to CTAN.

Thank you very much for the contribution.

@Zeta611 Zeta611 merged commit 399c9dd into Zeta611:master May 8, 2022
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

2 participants