sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Parslet#sequence
Returns a placeholder for a tree transformation that will only match a
sequence of elements. The +symbol+ you specify will be the key for the
matched sequence in the returned dictionary.
# This would match a body element that contains several declarations.
{ :body => sequence(:declarations) }
The above example would match <code>:body => ['a', 'b']</code>, but not
<code>:body => 'a'</code>.
see {Parslet::Transform}Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/parslet/lib/parslet.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Parslet-sequence-for-pr
# Commit to gitgit add app/server/ruby/vendor/parslet/lib/parslet.rbgit commit -m "better docs for Parslet#sequence"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Parslet-sequence-for-pr
hub pull-request
# Celebrate!