Download nodes/executor/grammar.gf from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/nodes/executor/grammar.gf
- Command line
-
hf download hf://datasets/tailot/codex-python/nodes/executor/grammar.gf
-
curl -L -o grammar.gf https://huggingface.co/datasets/tailot/codex-python/resolve/main/nodes/executor/grammar.gf
576 Bytes
| -- Node executor (to gate_checker and adversary): proposes a Python search-replace patch. | |
| -- NOTE: this specification has not been compiled with the GF toolchain in the authoring environment. | |
| abstract PythonExecutor = { | |
| cat | |
| Proposal ; Path ; Status ; | |
| fun | |
| Propose : Path -> Status -> Proposal ; | |
| FilePath : String -> Path ; | |
| PatchState : String -> Status ; | |
| } | |
| concrete PythonExecutorEng of PythonExecutor = { | |
| lincat | |
| Proposal, Path, Status = Str ; | |
| lin | |
| Propose p s = "patch" ++ p ++ "status" ++ s ; | |
| FilePath p = p.s ; | |
| PatchState s = s.s ; | |
| } | |