AbsTree ParseExprs() { Dump("exprs -> expr EOL exprs_"); List <AbsExpr> exprs = new List <AbsExpr>(); AbsExpr t = (AbsExpr)ParseExpr(); exprs.Add(t); if (peekTakeNext(Token.EOL) != null) { ParseExprs_(exprs); } return(new AbsExprs(exprs)); }
List <AbsExpr> ParseExprs_(List <AbsExpr> exprs) { Dump("exprs_ -> expr EOL exprs_"); AbsExpr t = (AbsExpr)ParseExpr(); if (t != null) { exprs.Add(t); if (peekTakeNext(Token.EOL) != null) { return(ParseExprs_(exprs)); } } else { Dump("[override last]exprs_ -> "); return(exprs); } return(null); }