[antlr-interest] DFA argument "s"

Avid Trober avidtrober at gmail.com
Thu Feb 19 00:30:16 PST 2009


What determines the value of the "s" argument to a DFA routine such as this?

protected internal int DFA21_SpecialStateTransition(DFA dfa, int s, IIntStream _input) 

The DFA is called via this in the parser:

alt21 = dfa21.Predict(input);

then, goes through some ANTLR call frames before emerging in the above DFA call with "s" set to some value.  (That value is braching to the wrong case statement that I would expect, but can't figure out why).

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090219/161dc1aa/attachment.html 


More information about the antlr-interest mailing list