summaryrefslogtreecommitdiffstats
path: root/code/simpleSableCCCalulator/README.md
diff options
context:
space:
mode:
authorchris.sutcliffe <ctd.sutcliffe@gmail.com>2021-11-29 16:46:56 +0000
committerchris.sutcliffe <ctd.sutcliffe@gmail.com>2021-11-29 16:46:56 +0000
commit33359862f5455dc7003ebbe5357c611298042cee (patch)
tree1eff075406177fb2d0feff685f24c7e306f589c8 /code/simpleSableCCCalulator/README.md
parent2e3be43da8761eb77b00af20f559fef7a8c6b1b8 (diff)
downloadesotericFORTRAN-33359862f5455dc7003ebbe5357c611298042cee.tar.gz
esotericFORTRAN-33359862f5455dc7003ebbe5357c611298042cee.zip
clean repo (remove code dir, add UI dir)
Diffstat (limited to 'code/simpleSableCCCalulator/README.md')
-rw-r--r--code/simpleSableCCCalulator/README.md22
1 files changed, 0 insertions, 22 deletions
diff --git a/code/simpleSableCCCalulator/README.md b/code/simpleSableCCCalulator/README.md
deleted file mode 100644
index 4878685..0000000
--- a/code/simpleSableCCCalulator/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# simpleSableCCCalculator
-
-sableCC is a too used to parse .grammar files (containing a BNF, and lexer information)
-into a lexer and parser. We can do a depth first traversal of the produced abstract syntax tree
-to parse in the correct order. This is in the file `Translation.java`.
-
-You produce a lexer and parser by running the sablecc .jar file you can download [here](http://downloads.sourceforge.net/sablecc/sablecc-3.7.zip). Then run it with the first argument as the grammar file:
-
-`java -jar sablecc-3.7/lib/sablecc.jar sableCCCalculator.grammar`
-
-(changing the paths as appropriate). The produced java files are not included in git since they're unnessicary. We compile the compiler, program stack and translator:
-
-`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`
-
-
-