Hi , everyone,
I'm testing the following grammar

INT
    :    ('0'..'9')+
    ;
FLOAT
    :    ('0'..'9')* '.' INT
    ;
and get the follwing DFAs
DFA d=1
.s0-'0'..'9'->:s2=>1
.s0-<EOT>->:s1=>2

DFA d=2
.s0-'.'->:s2=>2
.s0-'0'..'9'->:s1=>1

DFA d=3
.s0-'.'->:s3=>2
.s0-'0'..'9'->.s1
.s1-'.'->:s3=>2
.s1-'0'..'9'->.s1
.s1-<EOT>->:s2=>1
from the lexer code , I can just assemble the last one (d=3) what's purpose
of the former 2? Many thanks.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to