[antlr-interest] Bug with predicates and DFAs?
Kay Roepke
kroepke at classdump.org
Mon Aug 20 13:01:26 PDT 2007
Hi!
On Aug 20, 2007, at 3:45 PM, Braun, Kevin T wrote:
> Just to make sure I was clear, it is the input.LT(1).getText() part of
> the predicate that causes a problem when hoisted, since the DFA is
> using
> an IntStream and not a TokenStream. Since you mention "function of
> input symbols", I wasn't sure if I got my point across or not.
you should be able to cast it to TokenStream, actually. if you are in
a parser
then the stream would always be implementing TokenStream, so it should
be safe, too.
HTH,
-k
--
Kay Röpke
http://classdump.org/
More information about the antlr-interest
mailing list