Hello Rui, the end of a c-string is a \0. So all you need is a rule for that \0. Remember as documented re2c does not assume anythign about your input.
marcus Saturday, December 27, 2008, 9:36:03 PM, you wrote: > I'm using the code produced by re2c to write a lexer that will be used to help > parse command line arguments. To be able to parse a token, I believe that it > is fundamental that re2c is able to detect the end of a c-string. If it can't > detect then a "se" argument will be flagged even when passing a "search" > token. > Unfortunately, I wasn't able to get re2c to respond to end of line tokens, > which is a bit of a downer. > So, what are your thoughs on this? Is this possible? > Thanks in advance, > Rui Maciel > ------------------------------------------------------------------------------ > _______________________________________________ > Re2c-general mailing list > Re2c-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/re2c-general -- Best regards, Marcus mailto:m...@marcus-boerger.de ------------------------------------------------------------------------------ _______________________________________________ Re2c-general mailing list Re2c-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/re2c-general