private SubExpression Plus() { SubExpression expr = Factor(); if (Peek?.Character == '+') { Next(); expr = new RepeatedExpression(expr, '+'); } return(expr); }
private SubExpression Star() { SubExpression expr = Plus(); if (Peek?.Character == '*') { Next(); expr = new RepeatedExpression(expr, '*'); } return(expr); }