sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Parslet::Atoms::CanFlatten#flatten_repetition
Flatten results from a repetition of a single parslet. named indicates whether the user has named the result or not. If the user has named the results, we want to leave an empty list alone - otherwise it is turned into an empty string.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/parslet/lib/parslet/atoms/can_flatten.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Parslet--Atoms--CanFlatten-flatten_repetition-for-pr
# Commit to gitgit add app/server/ruby/vendor/parslet/lib/parslet/atoms/can_flatten.rbgit commit -m "better docs for Parslet::Atoms::CanFlatten#flatten_repetition"
# 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--CanFlatten-flatten_repetition-for-pr
hub pull-request
# Celebrate!