examples : add pydantic models to GBNF grammar generator (#4883)

* Create pydantic-models-to-grammar.py

* Added some comments for usage

* Refactored Grammar Generator

Added example and usage instruction.

* Update pydantic_models_to_grammar.py

* Update pydantic-models-to-grammar-examples.py

* Renamed module and imported it.

* Update pydantic-models-to-grammar.py

* Renamed file and fixed grammar generator issue.
This commit is contained in:
Maximilian Winter 2024-01-12 20:46:45 +01:00 committed by GitHub
parent 3fe81781e3
commit 52ee4540c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1287 additions and 0 deletions

File diff suppressed because it is too large Load diff