From 126a6c85b60ad07fa29ab48315f0f195fb45d854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gassmann?= Date: Fri, 11 Jun 2021 01:39:49 +0200 Subject: [+] First version of the java calculator --- calculator-java/src/main/java/ch/bfh/parser/Parser.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 calculator-java/src/main/java/ch/bfh/parser/Parser.java (limited to 'calculator-java/src/main/java/ch/bfh/parser/Parser.java') 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; + } +} + -- cgit v1.2.3