|Re: Inquiry about nfa output by flex firstname.lastname@example.org (Vern Paxson) (2005-08-05)|
|Re: Inquiry about nfa output by flex email@example.com (bharath) (2005-08-10)|
|Re: Inquiry about nfa output by flex firstname.lastname@example.org (Vern Paxson) (2005-08-31)|
|From:||Vern Paxson <email@example.com>|
|Date:||31 Aug 2005 00:34:42 -0400|
> The -1 character class is "." i believe.
> What is the -2 character class ?
Actually, it looks from -T output that I didn't state that correctly.
-1 is the first character class in the input, -2 the second, etc.,
and then the match-any character class is created for the default
rule, so it'll be -n if you have n-1 explicit character classes.
> If I have a regular expression like
> ((~[A-Z][0-9A-Za-z\&\.\-\, ]+~(N|J)[^~]*~[0-9]+~)+~[0-9A-Za-z\
> I get character classes -1 to -7 in the nfa output by flex
Hmmmm, I get -1 to -6.
> To verify this, I wrote a simple regular expression with a single dot
> And I got two character classes in the NFA output by flex : -1 and -2.
> What is character class does -2 represent ?
-1 is '.' and -2 is the equivalent of '.|\n'.
Return to the
Search the comp.compilers archives again.