Re: [Flex-help] A problem with token '/' character (forward slash)
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Praseed V G. <pra...@gm...> - 2008-06-10 19:18:16
|
Yes. I see the message "warning, rule cannot be matched" in many places, but not sure how to fix it. Thanks Praseed On Mon, Jun 9, 2008 at 5:04 PM, ruertar <ru...@gm...> wrote: >> > > This looks like it should work. I tried something similar myself and it > worked fine: > > %{ > #include <stdio.h> > %} > %% > [[:alnum:]\_\-\.\/]{1,255} { > printf("len: %d, string: %s\n", > yyleng,yytext); > } > %% > > Do you think there might be another rule that is matching instead? When > you run flex on your source, do you see "warning, rule cannot be > matched" anywhere? > > -ayan > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Flex-help mailing list > Fle...@li... > https://lists.sourceforge.net/lists/listinfo/flex-help > |