From: SourceForge.net <no...@so...> - 2005-07-05 18:16:37
|
Feature Requests item #1232777, was opened at 2005-07-05 14:28 Message generated for change (Comment added) made by helly You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616203&aid=1232777&group_id=96864 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open >Priority: 3 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: negated char classes Initial Comment: Hi, I think one big addition would be negated char classes, whose syntax would be like Perl or PHP: [^abc] With this, you could build an easier comment parser, like: Ccomments = "/*" ([^*]* | "*" [^/])* "*/"; CPPcomments = "//" [^\r\n]* a dot-all match would also be usefull: anychar = . instead of the the char class you use in the examples: anychar = [\000-\377] Both these two additions should be easy to add, and should also have great performance. Regards, Nuno Lopes ---------------------------------------------------------------------- >Comment By: Marcus Börger (helly) Date: 2005-07-05 18:16 Message: Logged In: YES user_id=271023 It would have absolutley no impact on the performance (You'd need to completley understand how re2c works to understand this though). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=616203&aid=1232777&group_id=96864 |