Download nodes/retriever/grammar.gf from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 574 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/nodes/retriever/grammar.gf
- Command line
-
hf download hf://datasets/tailot/codex-python/nodes/retriever/grammar.gf
-
curl -L -o grammar.gf https://huggingface.co/datasets/tailot/codex-python/resolve/main/nodes/retriever/grammar.gf
574 Bytes
| -- Node retriever (to executor): gathers Python AST symbols, imports, and call edges. | |
| -- NOTE: this specification has not been compiled with the GF toolchain in the authoring environment. | |
| abstract PythonRetriever = { | |
| cat | |
| Context ; Symbol ; Edge ; | |
| fun | |
| Gather : Symbol -> Edge -> Context ; | |
| Sym : String -> Symbol ; | |
| Dep : String -> String -> Edge ; | |
| } | |
| concrete PythonRetrieverEng of PythonRetriever = { | |
| lincat | |
| Context, Symbol, Edge = Str ; | |
| lin | |
| Gather s e = "context" ++ s ++ "edges" ++ e ; | |
| Sym n = n.s ; | |
| Dep a b = a.s ++ "->" ++ b.s ; | |
| } | |