aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/wasm
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-06-19 12:22:05 +0000
committerbloodstalker <thabogre@gmail.com>2018-06-19 12:22:05 +0000
commit60a541bddd4f4de212c406ba5fabdd7ad1778fb6 (patch)
tree5abf7afffa9256dddd6b2ac7d5a0d6292621e60d /bruiser/wasm
parentfix (diff)
downloadmutator-60a541bddd4f4de212c406ba5fabdd7ad1778fb6.tar.gz
mutator-60a541bddd4f4de212c406ba5fabdd7ad1778fb6.zip
fixes #43. the auto-gen source files by luatablegen dont look like source files instead of headers. luatablegen also generates an excuse of a doc for all the table methods.
Diffstat (limited to '')
-rwxr-xr-xbruiser/wasm/dwasm.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bruiser/wasm/dwasm.py b/bruiser/wasm/dwasm.py
index 28f3c4d..e404dca 100755
--- a/bruiser/wasm/dwasm.py
+++ b/bruiser/wasm/dwasm.py
@@ -5,9 +5,14 @@ import code
import readline
import signal
import sys
-from parse import Argparser, premain, SigHandler_SIGINT
+from parse import Argparser, premain, SigHandler_SIGINT,PythonInterpreter
from utils import ParseFlags
+def getWASMModule():
+ module_path = sys.argv[1]
+ interpreter = PythonInterpreter()
+ module = interpreter.parse(module_path)
+
def main():
signal.signal(signal.SIGINT, SigHandler_SIGINT)
argparser = Argparser()