Generate `enum` bindings for Python and Java (#8393)
authorAndres Noetzli <andres.noetzli@gmail.com>
Fri, 25 Mar 2022 20:28:12 +0000 (13:28 -0700)
committerGitHub <noreply@github.com>
Fri, 25 Mar 2022 20:28:12 +0000 (20:28 +0000)
commitfb54473f59d21a3125f67dc1f8f834431bc207f5
treef19739fbc45fa7ea5d48bcb3b11022f308b54606
parentbf8ec7d9f13a9b37d9b5b279167b77cf28d74c45
Generate `enum` bindings for Python and Java (#8393)

This commit generalizes the generation of bindings for enums to include
enums in cvc5_types.h. The commit only generates the bindings, but
does not use them yet (e.g., do add an argument to
Solver::blockModels()). The generated Java bindings already respect
the C++ namespace whereas the Python bindings require a minor
restructuring to make the namespaces work (i.e., instead of cvc5kinds,
we should have cvc5.api.kinds).
12 files changed:
src/CMakeLists.txt
src/api/cpp/cvc5.h
src/api/cpp/cvc5_kind.h
src/api/cpp/cvc5_types.h [new file with mode: 0644]
src/api/java/CMakeLists.txt
src/api/java/genenums.py.in [new file with mode: 0644]
src/api/java/genkinds.py.in [deleted file]
src/api/parseenums.py [new file with mode: 0644]
src/api/parsekinds.py [deleted file]
src/api/python/CMakeLists.txt
src/api/python/genenums.py.in [new file with mode: 0644]
src/api/python/genkinds.py.in [deleted file]