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; } }