-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructuring, improved support for commandline
- Loading branch information
Showing
19 changed files
with
389 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../translator/CRMLTranslationException.java → ...ml/compiler/CRMLTranslationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
public class CRMLTranslationException extends Exception{ | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/main/java/crml/translator/Category.java → src/main/java/crml/compiler/Category.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
import java.util.HashMap; | ||
import java.util.Iterator; | ||
|
2 changes: 1 addition & 1 deletion
2
...java/crml/translator/CategoryMapping.java → ...n/java/crml/compiler/CategoryMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package crml.compiler; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import com.beust.jcommander.Parameter; | ||
|
||
public class CommandLineArgs { | ||
|
||
@Parameter(names = {"-printAST" }, description = "If set to true will display the AST for the model.") | ||
public Boolean printAST = false; | ||
|
||
@Parameter(names = {"-runTestsuite"}, description = "Will run the tests located in the directory provided in parameters. If no directory is provided, will run the project testsuite.") | ||
public String runTestSuite; | ||
|
||
@Parameter(names = {"-o"}, description = "Provide an output directory via -o on where to write the .mo files. If no output directory via -o is given then the .mo files are generated in the current directory.") | ||
public String outputDir = "default"; | ||
|
||
@Parameter(description = "Files to be compiled") | ||
public List<String> files = new ArrayList<>(); | ||
|
||
@Parameter(names = "-help", help = true) | ||
public boolean help; | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
...java/crml/translator/OperatorMapping.java → ...n/java/crml/compiler/OperatorMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/crml/translator/Signature.java → src/main/java/crml/compiler/Signature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
2 changes: 1 addition & 1 deletion
2
...java/crml/translator/TranslatorError.java → ...n/java/crml/compiler/TranslatorError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
|
||
import org.antlr.v4.runtime.RuleContext; | ||
|
2 changes: 1 addition & 1 deletion
2
...ava/crml/translator/UserOperatorCall.java → .../java/crml/compiler/UserOperatorCall.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
import java.util.List; | ||
|
||
import grammar.crmlParser; | ||
|
2 changes: 1 addition & 1 deletion
2
src/main/java/crml/translator/Utilities.java → src/main/java/crml/compiler/Utilities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/main/java/crml/translator/Value.java → src/main/java/crml/compiler/Value.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
2 changes: 1 addition & 1 deletion
2
...in/java/crml/translator/VariableData.java → ...main/java/crml/compiler/VariableData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
|
2 changes: 1 addition & 1 deletion
2
...java/crml/translator/crmlVisitorImpl.java → ...n/java/crml/compiler/crmlVisitorImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package crml.translator; | ||
package crml.compiler; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.