Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abetlen/llama-cpp-python
/ llama_grammar.py
File
llama_grammar.py
llama_cpp/llama_grammar.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"Python implementation of llama grammar parser directly translated from C++ source file in vendor/llama.cpp/common/grammar-parser.cpp."
""
2
3
# flake8: noqa
4
from
pathlib
import
Path
Callers
nothing calls this directly
Calls
2
_build_repetition
Function · 0.85
BuiltinRule
Class · 0.70
Tested by
no test coverage detected