aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+```