summaryrefslogtreecommitdiff
path: root/contrib/optionsskel
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2018-03-21 15:48:57 -0700
committerGitHub <noreply@github.com>2018-03-21 15:48:57 -0700
commitbdba2bf65eb2f68daa1a5e488c4e50f5dac1b312 (patch)
tree3f97efe21f089d3abb5d9a2b53c0c7ee63ba06bb /contrib/optionsskel
parent966960b424aa5901a03abbfaa1bcdac6e3ed90dc (diff)
Refactor mkoptions (#1631)
This commit refactors code generation for options. It uses a new configuration format for defining options (*.toml) and a new Python script mkoptions.py to generate the source code and option documentation. The option behavior did not change for most of the options, except that for bool --enable-/--disable- long options enable/disable was removed. E.g. --enable-miplib-trick and --disable-miplib-trick got changed to --miplib-trick and --no-miplib-trick. This commit fixes also an issues with set-option/get-option via the SMT2 interface. Before long options were only accessible if the name included the =ARG part.
Diffstat (limited to 'contrib/optionsskel')
-rw-r--r--contrib/optionsskel/DIR_options8
-rw-r--r--contrib/optionsskel/DIR_options.toml8
2 files changed, 8 insertions, 8 deletions
diff --git a/contrib/optionsskel/DIR_options b/contrib/optionsskel/DIR_options
deleted file mode 100644
index de160df6d..000000000
--- a/contrib/optionsskel/DIR_options
+++ /dev/null
@@ -1,8 +0,0 @@
-#
-# Option specification file for CVC4
-# See src/options/base_options for a description of this file format
-#
-
-module $id "options/$dir_options.h" $camel
-
-endmodule
diff --git a/contrib/optionsskel/DIR_options.toml b/contrib/optionsskel/DIR_options.toml
new file mode 100644
index 000000000..09f44fde7
--- /dev/null
+++ b/contrib/optionsskel/DIR_options.toml
@@ -0,0 +1,8 @@
+#
+# Option specification file for CVC4
+# See src/options/README for a description of this file format
+#
+
+id = "$id"
+name = "$camel"
+header = "options/$dir_options.h"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback