sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Parslet::Pattern#match
Decides if the given subtree matches this pattern. Returns the bindings
made on a successful match or nil if the match fails. If you specify
bindings to be a hash, the mappings in it will be treated like bindings
made during an attempted match.
Pattern.new('a').match('a', :foo => 'bar') # => { :foo => 'bar' }Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/parslet/lib/parslet/pattern.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Parslet--Pattern-match-for-pr
# Commit to gitgit add app/server/ruby/vendor/parslet/lib/parslet/pattern.rbgit commit -m "better docs for Parslet::Pattern#match"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Parslet--Pattern-match-for-pr
hub pull-request
# Celebrate!