mirror of
https://github.com/Z3Prover/z3
synced 2026-02-25 17:51:20 +00:00
fixed update_api.py
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
15fb18c65d
commit
9cb29777e2
4 changed files with 515 additions and 474 deletions
|
|
@ -446,6 +446,7 @@ def mk_py_binding(name, result, params):
|
|||
core_py.write("]\n")
|
||||
|
||||
def extra_API(name, result, params):
|
||||
print 'extra_API(%s)' % name
|
||||
mk_py_binding(name, result, params)
|
||||
reg_dotnet(name, result, params)
|
||||
|
||||
|
|
@ -848,12 +849,16 @@ def mk_bindings():
|
|||
# Collect API(...) commands from
|
||||
def def_APIs():
|
||||
pat1 = re.compile(" *def_API.*")
|
||||
pat2 = re.compile(" *extra_API.*")
|
||||
for api_file in API_FILES:
|
||||
api = open(api_file, 'r')
|
||||
for line in api:
|
||||
m = pat1.match(line)
|
||||
if m:
|
||||
eval(line)
|
||||
m = pat2.match(line)
|
||||
if m:
|
||||
eval(line)
|
||||
|
||||
mk_z3consts_donet()
|
||||
mk_z3consts_py()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue