[antlr-interest] ANTLR Lexer stops reading the file
Gokulakannan Somasundaram
gokul007 at gmail.com
Thu Feb 4 06:18:52 PST 2010
I found the problem. It was a semicolon, at the end of the line, that i
missed to match in the rule. It stopped the lexing without emitting an
error. Is it an expected behavior?
Gokul.
On Thu, Feb 4, 2010 at 7:22 PM, Gokulakannan Somasundaram <
gokul007 at gmail.com> wrote:
> Hi,
> I am faced with a problem, where in some of the statements that have to
> get parsed are not getting parsed. When i tried the remote debugging, it is
> saying the input has terminated, whereas there are further lines in the file
> to be read and parsed.
> I am attaching the source of the Lexer, Parser(with Templates) and the
> input file and Main.java.
> I tried remote debugging the stuff and the tokens are not getting
> generated after a point. In the input file test.bdf, there is a portion like
> this
>
> dclform
> THROBBER_SERVLET001:
> "loading" := "true"; */* Things are terminating here
> */*
>
> THROBBER_SERVLET002:
> "loading" := "true";
>
>
> Can anyone help me on this?
>
> When i ran it like "java Main test.bdf", i am facing this issue.
>
>
> Thanks,
> Gokul.
>
More information about the antlr-interest
mailing list