aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaël Gassmann <mael.gassmann@students.bfh.ch>2021-06-12 15:41:06 +0200
committerMaël Gassmann <mael.gassmann@students.bfh.ch>2021-06-12 15:41:06 +0200
commit4f66b5f51b7c32fec9b7db842bf2860237328333 (patch)
tree68d6dac127909dac61a7f05f46b8d5efc46068a5
parentb48f42bba5525a99e6d59b07f2e6fd1271896f87 (diff)
[~] Wrote the README
-rw-r--r--README.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/README.md b/README.md
index 204492d..6131b1c 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,47 @@
# calculator_gassm14
+## Requirements
+
+- java-11-openjdk
+- Apache Maven 3.8.1
+
+## Java Calculator project
+
+### Compilation
+
+Navigate to the calculator-java folder and run:
+
+```
+mvn package
+```
+
+The resulting jar file can then be located in the /target folder.
+
+### Execution
+
+Navigate to the newly generated /target folder and launch the jar:
+
+```
+java -jar calculator-java-1.0-SNAPSHOT.jar
+```
+
+## JavaCC Calculator project
+
+To easily compile and run this project, you will find a file compileRun.sh in its folder.
+If you still prefer to compile and run separatly, you can check out the sections below.
+
+### Compilation
+
+Navigate to the calculator-javacc folder and run:
+
+```
+javacc Calculator.jj && javac *.java
+```
+
+### Execution
+
+In the same folder, execute:
+
+```
+java Calculator
+```