I don't have much experience with AntLR, but my guess is that the lexer is producing a token for the newline and it's not matched in your grammar.
Normally when you're writing a parser you have to tell the lexer explicitly to ignore whitespace and line endings. But I could be wrong, that could be something that AntLR is supposed to do for you.
Nate C-K
2010-01-27 17:04:26