about summary refs log tree commit diff
path: root/custom_mutators/grammar_mutator
diff options
context:
space:
mode:
Diffstat (limited to 'custom_mutators/grammar_mutator')
-rw-r--r--custom_mutators/grammar_mutator/README.md6
-rwxr-xr-xcustom_mutators/grammar_mutator/build_grammar_mutator.sh17
2 files changed, 23 insertions, 0 deletions
diff --git a/custom_mutators/grammar_mutator/README.md b/custom_mutators/grammar_mutator/README.md
new file mode 100644
index 00000000..a015744c
--- /dev/null
+++ b/custom_mutators/grammar_mutator/README.md
@@ -0,0 +1,6 @@
+# Grammar-Mutator
+
+This is just a stub directory that will clone the real grammar mutator
+directory.
+
+Execute `./build_grammar_mutator.sh` to set everything up.
diff --git a/custom_mutators/grammar_mutator/build_grammar_mutator.sh b/custom_mutators/grammar_mutator/build_grammar_mutator.sh
new file mode 100755
index 00000000..f3f5e164
--- /dev/null
+++ b/custom_mutators/grammar_mutator/build_grammar_mutator.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+test -d Grammar-Mutator || git clone --depth=1 https://github.com/AFLplusplus/Grammar-Mutator
+
+cd Grammar-Mutator || exit 1
+git stash ; git pull
+
+wget -c https://www.antlr.org/download/antlr-4.8-complete.jar
+
+echo
+echo
+echo "All successfully prepared!"
+echo "To build for your grammar just do:"
+echo "  cd Grammar_Mutator"
+echo "  make GRAMMAR_FILE=/path/to/your/grammar"
+echo "You will find a JSON and RUBY grammar in Grammar_Mutator/grammars to play with."
+echo