[antlr-interest] ANTLR 3: Problem with static DFA class generation

Oliver Zeigermann oliver.zeigermann at gmail.com
Sun Sep 25 03:50:10 PDT 2005


2005/9/24, Terence Parr <parrt at cs.usfca.edu>:
>
> On Sep 24, 2005, at 3:18 AM, Oliver Zeigermann wrote:
>
> > Wow! That is really impressive! StringTemplate is even more powerful
> > than I thought!
> >
> > What making method predict in org.antlr.runtime.DFA non-static as
> > well? Just for consistency?
>
> Hi :)
>
> it looks nonstatic to me:
>
> /** The overall cyclic DFA chunk; contains all the DFA states */
> cyclicDFA(className,decisionNumber,states,description) ::= <<
> class DFA<decisionNumber> extends DFA {
>      public int predict(IntStream input) throws RecognitionException {
>          return predict(input, s0);
>      }
>      <states>
> }
>  >>
>
> maybe sync again :)

You got me wrong. I was talking about the predict method of
org.antlr.runtime.DFA, i.e. the one DFA<decisionNumber> extends.

Oliver


More information about the antlr-interest mailing list