summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-10-24 16:08:45 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2021-10-24 16:08:45 +0100
commit3b85d64206d232d12864ec46a8b8d42fe6b464bb (patch)
treed1f3e38a1b35df3c38b01414de6d2424660a33fb
parent814c115d8accedc07e42d218bfdab639148fa836 (diff)
downloadesotericFORTRAN-3b85d64206d232d12864ec46a8b8d42fe6b464bb.tar.gz
esotericFORTRAN-3b85d64206d232d12864ec46a8b8d42fe6b464bb.zip
updated readme and makefile
-rw-r--r--code/simpleSableCCCalulator/Makefile5
-rw-r--r--code/simpleSableCCCalulator/README.md2
2 files changed, 7 insertions, 0 deletions
diff --git a/code/simpleSableCCCalulator/Makefile b/code/simpleSableCCCalulator/Makefile
index 7c6962b..477422b 100644
--- a/code/simpleSableCCCalulator/Makefile
+++ b/code/simpleSableCCCalulator/Makefile
@@ -1,4 +1,5 @@
all:
+ java -jar ../../../sablecc-3.7/lib/sablecc.jar sableCCCalculator.grammar
javac sableCCCalculator/*.java
javac sableCCCalculator/types/*.java
@@ -6,3 +7,7 @@ all:
clean:
rm -vf sableCCCalculator/*.class
rm -vf sableCCCalculator/types/*class
+ rm -rfv sableCCCalculator/analysis/
+ rm -rfv sableCCCalculator/lexer/
+ rm -rfv sableCCCalculator/node/
+ rm -rvf sableCCCalculator/parser/
diff --git a/code/simpleSableCCCalulator/README.md b/code/simpleSableCCCalulator/README.md
index 4c75421..4878685 100644
--- a/code/simpleSableCCCalulator/README.md
+++ b/code/simpleSableCCCalulator/README.md
@@ -12,6 +12,8 @@ You produce a lexer and parser by running the sablecc .jar file you can download
`javac sableCCCalculator/*.java`
+I setup a makefil that can be used. First make sure that sablecc is extracted in the directory below `EsotericProject` and just run `make`.
+
Then we can run the program. For now it only works by reading files. There are some example maths questions in the examples folder:
`java sableCCCalculator.Compiler examples/maths.txt`