-
Notifications
You must be signed in to change notification settings - Fork 12k
grammars: x{min,max} repetition operator #6640
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
0160469
grammars: x{min,max} repetition operator + tweak +/*/? to avoid dupli…
f2030e3
grammars: handle `x{n}` and fix `x{n,n}`
de0fd3f
grammars: document new repetition operators
9d9b5a3
grammars: nit
6b5518c
grammars: uniform use of int for min & max
0ceb69a
grammars: refactor parser test
8938a05
grammar: parsing tests w/ natural pretty print of updated expectations
0d7347f
grammars: much prettier print of expectations (+ TEST_GRAMMAR_PARSER_…
2e2df72
grammars: improve test pretty print again
ffe321d
grammars: pretty print rules and chars
a9351b8
grammars: fix copy rule skipping
9d8efa5
grammars: disallow `a{,}` (not allowed in regexps)
2d98ebf
Update common/grammar-parser.cpp
ochafik ec91342
grammars: fix copy rule skipping (again) & display of expectations
22faba6
grammars: more test cases
1fb7787
Merge remote-tracking branch 'origin/master' into grammar-reps
15585e0
grammars: update reps parsing to bring ? / * / + closer to before
93b754e
json: use new GBNF repetitions{m,n} syntax
2ecc2ae
grammars: update performance gotchas w/ repetition advice
a9a2983
Merge remote-tracking branch 'origin/master' into grammar-reps
d47f537
Update examples/json_schema_to_grammar.py
ochafik 724f879
Update examples/server/public/json-schema-to-grammar.mjs
ochafik a61281f
grammars: comment on rule repetitions
d03c98e
grammars: ensure unambiguous number alternatives
21bac1e
grammar: nit typo switched error msgs
0c74ad3
grammar: nit numbering in comment
218f41f
json: update numeric rule to be unambiguous
2813835
Apply suggestions from code review
ochafik 46fe648
Update examples/server/public/json-schema-to-grammar.mjs
ochafik eb7ccd8
json: fix integral-part
3c02508
Merge branch 'grammar-reps' of https://github.com/ochafik/llama.cpp i…
476c97d
Merge remote-tracking branch 'origin/master' into grammar-reps
990bf57
grammar: add repetition tests
d070aee
Merge remote-tracking branch 'origin/master' into grammar-reps
8266b7c
Merge remote-tracking branch 'origin/master' into grammar-reps
2b79d47
Merge remote-tracking branch 'origin/master' into grammar-reps
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To revie
8000
w, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.