sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Parslet::Accelerator.match

Given a parslet atom and an expression, will determine if the expression
matches the atom. If successful, returns the bindings into the pattern
that were made. If no bindings had to be made to make the match successful, 
the empty hash is returned.

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/parslet/lib/parslet/accelerator.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Parslet--Accelerator-match-for-pr


# Commit to git

git add app/server/ruby/vendor/parslet/lib/parslet/accelerator.rbgit commit -m "better docs for Parslet::Accelerator.match"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Parslet--Accelerator-match-for-pr

hub pull-request


# Celebrate!