summaryrefslogtreecommitdiff
path: root/doc/tutorial
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2013-02-27 20:59:43 +0000
committerhallgren <hallgren@chalmers.se>2013-02-27 20:59:43 +0000
commit0feb386691bb82e13c3dcc01e27ae33d8865f2ca (patch)
treef117b97d05861b5dcf58a241c8c2f6547b32182e /doc/tutorial
parent95c4cbb8f5ef10d04839e73a7f0dafe8536dab2d (diff)
Faster regular expression pattern matching in the grammar compiler.
The sequence operator (x+y) was implemented by splitting the string to be matched at all positions and trying to match the parts against the two subpatterns. To reduce the number of splits, we now estimate the minimum and maximum length of the string that the subpatterns could match. For common cases, where one of the subpatterns is a string of known length, like in (x+"y") or (x + ("a"|"o"|"u"|"e")+"y"), only one split will be tried.
Diffstat (limited to 'doc/tutorial')
0 files changed, 0 insertions, 0 deletions