Add OCaml code generation #24

Merged
glen merged 8 commits from ocaml_gen into main 2021-03-01 20:40:35 +00:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 221d85ebbe - Show all commits

View File

@ -70,6 +70,7 @@ steps:
- name: ocaml_tests
image: ocaml/opam
commands:
- ls -als tests/extracted
- bin/run_tests ocaml ml
volumes:

View File

@ -19,6 +19,7 @@ EXP = 'expect'
for path in TEST_LIST:
destdir = pf"{DESTINATION}/{path.stem}"
mkdir -p @(destdir)
chmod ugo+rwx @(destdir)
contents = path.read_text()
tests = re.split(r'test\s*(.+?)\s*\[\[.*?\n', contents)[1:]
testit = iter(tests)