sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Parslet::Atoms::Infix#produce_tree
Turns an array of the form ['1', '+', ['2', '*', '3']] into a hash that reflects the same structure.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/parslet/lib/parslet/atoms/infix.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Parslet--Atoms--Infix-produce_tree-for-pr
# Commit to gitgit add app/server/ruby/vendor/parslet/lib/parslet/atoms/infix.rbgit commit -m "better docs for Parslet::Atoms::Infix#produce_tree"
# 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--Infix-produce_tree-for-pr
hub pull-request
# Celebrate!