From 60a541bddd4f4de212c406ba5fabdd7ad1778fb6 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Tue, 19 Jun 2018 16:52:05 +0430 Subject: 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. --- bruiser/wasm/dwasm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bruiser/wasm') 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() -- cgit v1.2.3