{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/jcoglan/canopy/pulls/6","id":37107553,"html_url":"https://github.com/jcoglan/canopy/pull/6","diff_url":"https://github.com/jcoglan/canopy/pull/6.diff","patch_url":"https://github.com/jcoglan/canopy/pull/6.patch","issue_url":"https://api.github.com/repos/jcoglan/canopy/issues/6","number":6,"state":"open","locked":false,"title":"support optional, case-insensitive strings","user":{"login":"rctay","id":61553,"avatar_url":"https://avatars.githubusercontent.com/u/61553?v=3","gravatar_id":"","url":"https://api.github.com/users/rctay","html_url":"https://github.com/rctay","followers_url":"https://api.github.com/users/rctay/followers","following_url":"https://api.github.com/users/rctay/following{/other_user}","gists_url":"https://api.github.com/users/rctay/gists{/gist_id}","starred_url":"https://api.github.com/users/rctay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rctay/subscriptions","organizations_url":"https://api.github.com/users/rctay/orgs","repos_url":"https://api.github.com/users/rctay/repos","events_url":"https://api.github.com/users/rctay/events{/privacy}","received_events_url":"https://api.github.com/users/rctay/received_events","type":"User","site_admin":false},"body":"For example, in the following peg, `string2` is i) optional, and ii) case-insensitive:\r\n\r\n```\r\ngrammar Foo                                               \r\n  root <- string1 string2?                                      \r\n  string1 <- \"bar\"                                         \r\n  string2 <- `foo`\r\n```\r\n\r\nThis pull request fixes this case for python and ruby as well. Not sure how these language outputs are tested so I didn't add any tests for them, only the JavaScript builder. Java seems to check for null so I didn't have to touch it.","created_at":"2015-06-07T14:35:29Z","updated_at":"2015-06-07T14:35:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jcoglan/canopy/pulls/6/commits","review_comments_url":"https://api.github.com/repos/jcoglan/canopy/pulls/6/comments","review_comment_url":"https://api.github.com/repos/jcoglan/canopy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jcoglan/canopy/issues/6/comments","statuses_url":"https://api.github.com/repos/jcoglan/canopy/statuses/1ea0897188f354f727b8b61eff68c3f5813d92b1","head":{"label":"rctay:rc/opt-ci","ref":"rc/opt-ci","sha":"1ea0897188f354f727b8b61eff68c3f5813d92b1","user":{"login":"rctay","id":61553,"avatar_url":"https://avatars.githubusercontent.com/u/61553?v=3","gravatar_id":"","url":"https://api.github.com/users/rctay","html_url":"https://github.com/rctay","followers_url":"https://api.github.com/users/rctay/followers","following_url":"https://api.github.com/users/rctay/following{/other_user}","gists_url":"https://api.github.com/users/rctay/gists{/gist_id}","starred_url":"https://api.github.com/users/rctay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rctay/subscriptions","organizations_url":"https://api.github.com/users/rctay/orgs","repos_url":"https://api.github.com/users/rctay/repos","events_url":"https://api.github.com/users/rctay/events{/privacy}","received_events_url":"https://api.github.com/users/rctay/received_events","type":"User","site_admin":false},"repo":{"id":30448758,"name":"canopy","full_name":"rctay/canopy","owner":{"login":"rctay","id":61553,"avatar_url":"https://avatars.githubusercontent.com/u/61553?v=3","gravatar_id":"","url":"https://api.github.com/users/rctay","html_url":"https://github.com/rctay","followers_url":"https://api.github.com/users/rctay/followers","following_url":"https://api.github.com/users/rctay/following{/other_user}","gists_url":"https://api.github.com/users/rctay/gists{/gist_id}","starred_url":"https://api.github.com/users/rctay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rctay/subscriptions","organizations_url":"https://api.github.com/users/rctay/orgs","repos_url":"https://api.github.com/users/rctay/repos","events_url":"https://api.github.com/users/rctay/events{/privacy}","received_events_url":"https://api.github.com/users/rctay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rctay/canopy","description":"Self-hosting PEG parser compiler for JavaScript","fork":true,"url":"https://api.github.com/repos/rctay/canopy","forks_url":"https://api.github.com/repos/rctay/canopy/forks","keys_url":"https://api.github.com/repos/rctay/canopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rctay/canopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rctay/canopy/teams","hooks_url":"https://api.github.com/repos/rctay/canopy/hooks","issue_events_url":"https://api.github.com/repos/rctay/canopy/issues/events{/number}","events_url":"https://api.github.com/repos/rctay/canopy/events","assignees_url":"https://api.github.com/repos/rctay/canopy/assignees{/user}","branches_url":"https://api.github.com/repos/rctay/canopy/branches{/branch}","tags_url":"https://api.github.com/repos/rctay/canopy/tags","blobs_url":"https://api.github.com/repos/rctay/canopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rctay/canopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rctay/canopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/rctay/canopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rctay/canopy/statuses/{sha}","languages_url":"https://api.github.com/repos/rctay/canopy/languages","stargazers_url":"https://api.github.com/repos/rctay/canopy/stargazers","contributors_url":"https://api.github.com/repos/rctay/canopy/contributors","subscribers_url":"https://api.github.com/repos/rctay/canopy/subscribers","subscription_url":"https://api.github.com/repos/rctay/canopy/subscription","commits_url":"https://api.github.com/repos/rctay/canopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/rctay/canopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/rctay/canopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/rctay/canopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/rctay/canopy/contents/{+path}","compare_url":"https://api.github.com/repos/rctay/canopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rctay/canopy/merges","archive_url":"https://api.github.com/repos/rctay/canopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rctay/canopy/downloads","issues_url":"https://api.github.com/repos/rctay/canopy/issues{/number}","pulls_url":"https://api.github.com/repos/rctay/canopy/pulls{/number}","milestones_url":"https://api.github.com/repos/rctay/canopy/milestones{/number}","notifications_url":"https://api.github.com/repos/rctay/canopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rctay/canopy/labels{/name}","releases_url":"https://api.github.com/repos/rctay/canopy/releases{/id}","created_at":"2015-02-07T07:25:10Z","updated_at":"2015-02-07T07:25:11Z","pushed_at":"2015-06-07T14:30:33Z","git_url":"git://github.com/rctay/canopy.git","ssh_url":"git@github.com:rctay/canopy.git","clone_url":"https://github.com/rctay/canopy.git","svn_url":"https://github.com/rctay/canopy","homepage":"","size":446,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jcoglan:master","ref":"master","sha":"62149d777373c811dfcf126c8ffad6f202bf97fc","user":{"login":"jcoglan","id":9265,"avatar_url":"https://avatars.githubusercontent.com/u/9265?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoglan","html_url":"https://github.com/jcoglan","followers_url":"https://api.github.com/users/jcoglan/followers","following_url":"https://api.github.com/users/jcoglan/following{/other_user}","gists_url":"https://api.github.com/users/jcoglan/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoglan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoglan/subscriptions","organizations_url":"https://api.github.com/users/jcoglan/orgs","repos_url":"https://api.github.com/users/jcoglan/repos","events_url":"https://api.github.com/users/jcoglan/events{/privacy}","received_events_url":"https://api.github.com/users/jcoglan/received_events","type":"User","site_admin":false},"repo":{"id":607353,"name":"canopy","full_name":"jcoglan/canopy","owner":{"login":"jcoglan","id":9265,"avatar_url":"https://avatars.githubusercontent.com/u/9265?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoglan","html_url":"https://github.com/jcoglan","followers_url":"https://api.github.com/users/jcoglan/followers","following_url":"https://api.github.com/users/jcoglan/following{/other_user}","gists_url":"https://api.github.com/users/jcoglan/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoglan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoglan/subscriptions","organizations_url":"https://api.github.com/users/jcoglan/orgs","repos_url":"https://api.github.com/users/jcoglan/repos","events_url":"https://api.github.com/users/jcoglan/events{/privacy}","received_events_url":"https://api.github.com/users/jcoglan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcoglan/canopy","description":"A parser compiler for Java, JavaScript, Python, Ruby","fork":false,"url":"https://api.github.com/repos/jcoglan/canopy","forks_url":"https://api.github.com/repos/jcoglan/canopy/forks","keys_url":"https://api.github.com/repos/jcoglan/canopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcoglan/canopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcoglan/canopy/teams","hooks_url":"https://api.github.com/repos/jcoglan/canopy/hooks","issue_events_url":"https://api.github.com/repos/jcoglan/canopy/issues/events{/number}","events_url":"https://api.github.com/repos/jcoglan/canopy/events","assignees_url":"https://api.github.com/repos/jcoglan/canopy/assignees{/user}","branches_url":"https://api.github.com/repos/jcoglan/canopy/branches{/branch}","tags_url":"https://api.github.com/repos/jcoglan/canopy/tags","blobs_url":"https://api.github.com/repos/jcoglan/canopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcoglan/canopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcoglan/canopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcoglan/canopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcoglan/canopy/statuses/{sha}","languages_url":"https://api.github.com/repos/jcoglan/canopy/languages","stargazers_url":"https://api.github.com/repos/jcoglan/canopy/stargazers","contributors_url":"https://api.github.com/repos/jcoglan/canopy/contributors","subscribers_url":"https://api.github.com/repos/jcoglan/canopy/subscribers","subscription_url":"https://api.github.com/repos/jcoglan/canopy/subscription","commits_url":"https://api.github.com/repos/jcoglan/canopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcoglan/canopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcoglan/canopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcoglan/canopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/jcoglan/canopy/contents/{+path}","compare_url":"https://api.github.com/repos/jcoglan/canopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcoglan/canopy/merges","archive_url":"https://api.github.com/repos/jcoglan/canopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcoglan/canopy/downloads","issues_url":"https://api.github.com/repos/jcoglan/canopy/issues{/number}","pulls_url":"https://api.github.com/repos/jcoglan/canopy/pulls{/number}","milestones_url":"https://api.github.com/repos/jcoglan/canopy/milestones{/number}","notifications_url":"https://api.github.com/repos/jcoglan/canopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcoglan/canopy/labels{/name}","releases_url":"https://api.github.com/repos/jcoglan/canopy/releases{/id}","created_at":"2010-04-12T21:29:35Z","updated_at":"2015-05-26T03:07:05Z","pushed_at":"2015-06-07T14:35:29Z","git_url":"git://github.com/jcoglan/canopy.git","ssh_url":"git@github.com:jcoglan/canopy.git","clone_url":"https://github.com/jcoglan/canopy.git","svn_url":"https://github.com/jcoglan/canopy","homepage":"http://canopy.jcoglan.com","size":1122,"stargazers_count":130,"watchers_count":130,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":130,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jcoglan/canopy/pulls/6"},"html":{"href":"https://github.com/jcoglan/canopy/pull/6"},"issue":{"href":"https://api.github.com/repos/jcoglan/canopy/issues/6"},"comments":{"href":"https://api.github.com/repos/jcoglan/canopy/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/jcoglan/canopy/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/jcoglan/canopy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jcoglan/canopy/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/jcoglan/canopy/statuses/1ea0897188f354f727b8b61eff68c3f5813d92b1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":22,"deletions":3,"changed_files":4}}