diff options
author | bloodstalker <thabogre@gmail.com> | 2018-06-19 12:22:05 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-06-19 12:22:05 +0000 |
commit | 60a541bddd4f4de212c406ba5fabdd7ad1778fb6 (patch) | |
tree | 5abf7afffa9256dddd6b2ac7d5a0d6292621e60d /bruiser/wasm | |
parent | fix (diff) | |
download | mutator-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-x | bruiser/wasm/dwasm.py | 7 |
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() |