sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Parslet::Atoms::DSL#repeat
Construct a new atom that repeats the current atom min times at least and
at most max times. max can be nil to indicate that no maximum is present.
Example:
# match any number of 'a's
str('a').repeat
# match between 1 and 3 'a's
str('a').repeat(1,3)Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/parslet/lib/parslet/atoms/dsl.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Parslet--Atoms--DSL-repeat-for-pr
# Commit to gitgit add app/server/ruby/vendor/parslet/lib/parslet/atoms/dsl.rbgit commit -m "better docs for Parslet::Atoms::DSL#repeat"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Parslet--Atoms--DSL-repeat-for-pr
hub pull-request
# Celebrate!