From: AlannY <m...@al...> - 2010-08-01 08:13:36
|
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. |