lawrancej / CompilerKit

Compiler construction library in C.
GNU Lesser General Public License v2.1
55 stars 33 forks source link

Nice to have times implementation #24

Closed lawrancej closed 12 years ago

lawrancej commented 12 years ago

A regex usually supports a{k} or a{k,l} where k and l are numbers indicating the number of times to match regex a. We can simluate that for a{k} by producing the concatenation of a k times. For a{k,l}, we'd start with a concatenated k times, followed by a|empty-string concatenated l times.

NickeL9 commented 12 years ago

I'll take this