erlang - In a leex grammar file definition, is there a Regex rule for matching exactly N elements? -
looking thru documentation leex, don't see example of matching n elements, (element){n}
?
this fails:
definitions. threefoos = foo{3}
the work around this:
definitions. threefoos = foofoofoo
so if had case want match 3,000 foo's, definition threethousandfoos = foofoofoo<2,997 more foos>
pretty unwieldy. there hacks, constructing increasingly large foo definitions smaller ones (e.g. sixteenfoos = {eightfoos}{eightfoos}
), seems silly.
it looks support in leex
interval ranges commented out 6 years ago in erlang/otp , never included again.
Comments
Post a Comment