You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 as1E6
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.
The text was updated successfully, but these errors were encountered: