Skip to content

Grammar definition error and Peggy grammar file contrib #233

Description

@kf6kjg

I've written a first-pass rough draft of a Peggy-based grammar file. Attached for reference: libconfig.peg.txt

While drafting that file I found that the grammar definition for <float> in the docshas a glitch that makes it not pass the test file: the second condition of the regex requires the + or - prefix, thus a float specified as 1E6 fails unless it's declared as +1E6. Adding a simple ? to that clause fixes the problem.

For the second half of this question, where can I contribute the grammar to? I'd like to PR it into this repo, or a related one, so that it comes with the ecosystem. Alternatively I could publish it myself, but just feels like it'll just be another whiff of gas in the wide world.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions