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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -