public Object visitMultiSentence(MultiSentence fs, Object arg)
{
List<Sentence> terms = fs.getSentences();
List<Sentence> newTerms = new List<Sentence>();
for (int i = 0; i < terms.Count; i++)
{
Sentence s = (Sentence)terms[i];
Sentence subsTerm = (Sentence)s.accept(this, arg);
newTerms.Add(subsTerm);
}
return new MultiSentence(fs.getOperator(), newTerms);
}