-
Notifications
You must be signed in to change notification settings - Fork 116
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
Small difference on profile count between peg/leg == chpeg != peglib #217
Comments
@mingodad, thanks for the report but there is very little information to investigate. Could you try to make the smallest possible grammar and source text, and also provide the profile result that is supposed to be? Then I'll start debugging. Thanks! |
I found one reason (maybe the only one) of the differences, it's at the end of file:
Input:
When parsing the input cpp-peglib profile output:
chpeg (peg/leg) profile output:
|
With the modified example shown bellow and the same input as above/before
cpp-peglib profile output:
chpeg (peg/leg) profile output:
|
And if we make the rule
profile output:
Error message:
|
@mingodad, thanks for the report! |
Attached is a zip file with the grammars and input data used to compare the output of profile without packrat, there is a spreadsheet with the output of each (peg/leg, chpeg and cpp-peglib) where peg/leg and chpeg have the same profile numbers but peglib has some small deviation in several of then. I do not know yet what this difference means.
kotlin-diff.zip
The text was updated successfully, but these errors were encountered: