adding parse tree logic for recursive S productions so that we can generate nested expressions such as [[[ ]]]