[prev in list] [next in list] [prev in thread] [next in thread]
List: antlr-interest
Subject: [antlr-interest] ANTLR 3: Problem with static DFA class generation
From: oliver.zeigermann () gmail ! com (Oliver Zeigermann)
Date: 2005-09-25 9:30:18
Message-ID: 9da4f45205092503509dccb98 () mail ! gmail ! com
[Download RAW message or body]
2005/9/24, Terence Parr <parrt@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic