Feature Requests item #2938627, was opened at 2010-01-24 14:50
Message generated for change (Tracker Item Submitted) made by rui_maciel
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=616203&aid=2938627&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: 5
Private: No
Submitted By: Rui Maciel (rui_maciel)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make "match at least/exactly n times" code rely on counter

Initial Comment:
If a user needs to rely on the "match at least n times" or "match exactly n 
times" regular expression, re2c ends up generating a separate state for each 
match.  That has the very nasty effect of ballooning the size of the generated 
source code, particularly if the user needs to match long instances of a 
certain regex pattern.  

Possibly a good way to sidestep this problem is to rely on a counter instead of 
implementing a long sequence of states.  By implementing a counter then it 
would be possible to only implement the states related to the pattern of a 
single repetition and then test the counter to check the number of matches that 
were already made.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=616203&aid=2938627&group_id=96864

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Re2c-general mailing list
Re2c-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/re2c-general

Reply via email to