package ch.bfh; import ch.bfh.parser.ExpressionParser; import java.util.Arrays; public class Main { public static void main(String[] args){ CalculatorLexer cl = new CalculatorLexer(); //TODO - command line reader instead of arg // Combines the arguments & init the lexer cl.initLexer( Arrays.stream(args).reduce("", (expression, arg) -> expression + arg) ); ExpressionParser ep = new ExpressionParser(cl); System.out.println(ep.getValue()); } }