소스 검색

Added simple test script for whether a model compiles or not

Yentl Van Tendeloo 8 년 전
부모
커밋
077a8fed7e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      scripts/test_model_compile.py

+ 4 - 0
scripts/test_model_compile.py

@@ -0,0 +1,4 @@
+import sys
+sys.path.append("interface/HUTN/")
+from hutn_compiler.compiler import main as compile_code
+print(compile_code(sys.argv[1], "interface/HUTN/grammars/modelling.g", "M", []))