Commit c21aff4e authored by Niklas Fors's avatar Niklas Fors
Browse files

Add README.md and minor changes

parent ac5141bf
......@@ -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 -->
......
......@@ -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");
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment