Hi there.

In GNU flex, there are REJECT method, which rejects current rule and
select next one. Is it possible to implement the same functionality in
re2c?

/*!re2c
"id" [A-Za-z0-9] { if (id_with_suffix==0) REJECT; else return
ID_WITH_SUFFIX; }
"id"             { return ID; }
*/

If we don't want ID with suffix, but found with suffix, reject 1st rule
and use the next matching rule (2nd one).

Thanks for patience.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Re2c-general mailing list
Re2c-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/re2c-general

Reply via email to