Package net.emustudio.edigen
Class Translator
- java.lang.Object
-
- net.emustudio.edigen.Translator
-
public class Translator extends java.lang.ObjectA translator from the input file in the domain specific language (processor specification) to two output files (instruction decoder and disassembler) in the Java language.
-
-
Constructor Summary
Constructors Constructor Description Translator(java.util.Map<Setting,java.lang.String> settings)Constructs the translator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtranslate()Reads the input file, transforms the tree and generates the code.
-
-
-
Constructor Detail
-
Translator
public Translator(java.util.Map<Setting,java.lang.String> settings)
Constructs the translator.- Parameters:
settings- the settings obtained e.g. from the command line
-
-
Method Detail
-
translate
public void translate() throws java.io.IOException, net.emustudio.edigen.parser.ParseException, SemanticExceptionReads the input file, transforms the tree and generates the code.- Throws:
java.io.IOException- when the file can not be read / writtennet.emustudio.edigen.parser.ParseException- when the input file can not be parsedSemanticException- when there is a semantic error in the input file
-
-