package ch.bfh.parser; import ch.bfh.CalculatorLexer; import ch.bfh.Token; import java.util.HashMap; import java.util.Map; abstract class Parser{ protected static Map variables = new HashMap<>(); //'Persisted' Expressions when 'let' token was specified protected CalculatorLexer cl; protected Token lastToken; protected double value; protected abstract void parse(); public abstract double getValue(); }