[antlr-interest] Unexpected token at the end of my grammar file
troy runkel
trunkel at gmail.com
Thu May 31 15:11:09 PDT 2007
I think I may have solved this on my own. The last thing in my
grammar file was a multi-line C-style comment like this.
/**********************************
* some comments *
**********************************/
I removed the comment so that an ANTLR rule was the last thing in the
file and the error message went away.
Troy Runkel
On 5/31/07, troy runkel <trunkel at gmail.com> wrote:
> Greetings,
>
> I've just recently started working with ANTLR v3 and am in the process
> of putting together a T-SQL grammar. Whenever I run ANTLR on the
> grammar file I get the following error message.
>
> ANTLR Parser Generator Version 3.0 (May 17, 2007) 1989-2007
> error(100): TSQL.g:1630:1: syntax error: antlr: TSQL.g:1630:1:
> unexpected token: null
>
> The error occurs on the last line of the grammar file, which is blank.
> Any ideas what might be causing the error message? Thanks.
>
> Troy Runkel
>
More information about the antlr-interest
mailing list