Package calculator
package calculator
-
ClassDescriptionThis class represents the core logic of a Calculator.This class provides an empty implementation of
calculatorVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.This interface defines a complete generic visitor for a parse tree produced bycalculatorParser.Expression is an abstract class that represents arithmetic expressions.Exception that will be used when an incorrectly constructed arithmetic expression is encountered.A very simple calculator in Java University of Mons - UMONS Software Engineering Lab Faculty of SciencesEnumeration of the 3 ways to represent an arithmetic expression as a String: