Skip to content
Snippets Groups Projects
Commit c21aff4e authored by Niklas Fors's avatar Niklas Fors
Browse files

Add README.md and minor changes

parent ac5141bf
Branches
No related tags found
No related merge requests found
......@@ -7,6 +7,6 @@
/.settings
/bin/
/ant-bin/
/compiler.jar
/relast-compiler.jar
/src/generated/
/.gradle
# RelAST Preprocessor
Run preprocessor on train benchmark (output written to standard output)
$ ant jar
$ java -jar relast-compiler.jar examples/TrainBenchmark.relast
Run preprocessor and write to files
$ java -jar relast-compiler.jar examples/TrainBenchmark.relast --file
$ cat examples/TrainBenchmarkGen.ast
$ cat examples/TrainBenchmarkGen.jadd
Run test cases
$ cd test
$ make
\ No newline at end of file
......@@ -6,7 +6,7 @@
<property name="tools" value="${basedir}/tools"/>
<property name="test-reports.dir" location="report-tests"/>
<property name="jarfile" value="compiler.jar" />
<property name="jarfile" value="relast-compiler.jar" />
<property name="junitjar" value="${tools}/junit-4.11-SNAPSHOT.jar" />
<!-- "package" is the directory where generated files will be stored -->
......
File moved
......@@ -41,9 +41,6 @@ EndOfLineComment = "//" [^\n|\r|\r\n]*
Comment = {TraditionalComment} | {EndOfLineComment}
ID = [a-zA-Z$][a-zA-Z0-9$_]*
FLOAT = -?[0-9]+ \. [0-9]+ {Exponent}?
Exponent = [eE] [+-]? [0-9]+
NUM = -?[0-9]+
%state STRING
......
......@@ -28,6 +28,8 @@ public class Test {
testBi7();
testBi8();
testBi9();
System.out.println("TESTS OK");
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment