瀏覽代碼

ported to new version of SCCD

Simon Van Mierlo 8 年之前
父節點
當前提交
6436aa7a38
共有 3 個文件被更改,包括 14 次插入17 次删除
  1. 2 2
      textualnotations/log.txt
  2. 2 2
      textualnotations/sccd_to_xml_PY.py
  3. 10 13
      textualnotations/sccdtnc.py

+ 2 - 2
textualnotations/log.txt

@@ -1,2 +1,2 @@
-object - ERROR - Element with name bruno not found in package .
-object - ERROR - Element with name bruno not found in package .
+object - ERROR - Element with name temporaryLocation not found in package .
+object - ERROR - Element with name temporaryLocation not found in package .

+ 2 - 2
textualnotations/sccd_to_xml_PY.py

@@ -37,8 +37,8 @@ class XML2PythonRules(object):
 				'type': 'Class',
 				'name': 'SCCD.Top',
 				'pattern': ['<top>', '@newline', '@indent', '@@',
-								'from python_runtime.libs.ui import *', '@newline',
-								'from python_runtime.libs.utils import *', '@newline',
+								'from sccd.runtime.libs.ui import *', '@newline',
+								'from sccd.runtime.libs.utils import *', '@newline',
 								'@ActionBlockStatement',
 				'@dedent', '</top>', '@newline' ]
 			},

+ 10 - 13
textualnotations/sccdtnc.py

@@ -1,14 +1,17 @@
 import argparse
 import os
 from shell import Shell
-from generic_generator import GenericGenerator, Platforms
-from utils import Logger
 
-from generic_language_constructs import GenericConstruct
-from compiler_exceptions import CompilerException
-
-from javascript_writer import JavascriptWriter
-from python_writer import PythonWriter
+from sccd.compiler.generic_generator import GenericGenerator, Platforms
+from sccd.compiler.utils import Enum, Logger, FileWriter
+from sccd.compiler.generic_language_constructs import GenericConstruct
+from sccd.compiler.compiler_exceptions import CompilerException
+from sccd.compiler.javascript_writer import JavascriptWriter
+from sccd.compiler.python_writer import PythonWriter
+from sccd.compiler.super_class_linker import SuperClassLinker
+from sccd.compiler.state_linker import StateLinker
+from sccd.compiler.path_calculator import PathCalculator
+from sccd.compiler.sccd_constructs import ClassDiagram
 
 from sccd_asg_mapper import SCCD_ASG_Mapper
 pathname = os.path.dirname(os.path.realpath(__file__))
@@ -19,12 +22,6 @@ from sccd_to_xml_PY import XML2PythonRules
 from mvk_loader import MvKLoader
 from sccd_to_xml import SCCD_to_XML
 
-from utils import Enum, Logger, FileWriter
-from super_class_linker import SuperClassLinker
-from state_linker import StateLinker
-from path_calculator import PathCalculator
-from sccd_constructs import ClassDiagram
-
 def generate(input_file, output_file, target_language, platform):
 	sccd = xmlToSccd(input_file)