haskell / alex

A lexical analyser generator for Haskell
https://hackage.haskell.org/package/alex
BSD 3-Clause "New" or "Revised" License
297 stars 82 forks source link

Allow multiple digits in repetitions for regular expressions #141

Closed yav closed 4 years ago

yav commented 5 years ago

Currently Alex allows only a single digit in the number of repetitions for a regular expression. So $digit {9} is OK, but $digit {10} is a very confusing syntax error.