diff options
author | Maël Gassmann <mael.gassmann@students.bfh.ch> | 2021-06-11 01:39:49 +0200 |
---|---|---|
committer | Maël Gassmann <mael.gassmann@students.bfh.ch> | 2021-06-11 01:39:49 +0200 |
commit | 126a6c85b60ad07fa29ab48315f0f195fb45d854 (patch) | |
tree | 1c0245fc232c701da8577a5451d703a0d5808822 /calculator-java/src/main/java/ch/bfh/parser/Parser.java | |
parent | ee369b50b14ffe662e05355459f57c076680cd58 (diff) |
[+] First version of the java calculator
Diffstat (limited to 'calculator-java/src/main/java/ch/bfh/parser/Parser.java')
-rw-r--r-- | calculator-java/src/main/java/ch/bfh/parser/Parser.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/calculator-java/src/main/java/ch/bfh/parser/Parser.java b/calculator-java/src/main/java/ch/bfh/parser/Parser.java new file mode 100644 index 0000000..755313a --- /dev/null +++ b/calculator-java/src/main/java/ch/bfh/parser/Parser.java @@ -0,0 +1,16 @@ +package ch.bfh.parser; + +import ch.bfh.CalculatorLexer; +import ch.bfh.Token; + +abstract class Parser{ + protected CalculatorLexer cl; + protected Token lastToken; + protected double value; + + protected abstract void parse(); + public double getValue(){ + return value; + } +} + |