{"action":"opened","number":23,"pull_request":{"url":"https://api.github.com/repos/jameysharp/corrode/pulls/23","id":76800399,"html_url":"https://github.com/jameysharp/corrode/pull/23","diff_url":"https://github.com/jameysharp/corrode/pull/23.diff","patch_url":"https://github.com/jameysharp/corrode/pull/23.patch","issue_url":"https://api.github.com/repos/jameysharp/corrode/issues/23","number":23,"state":"open","locked":false,"title":"Add empty statements","user":{"login":"harpocrates","id":10766081,"avatar_url":"https://avatars.githubusercontent.com/u/10766081?v=3","gravatar_id":"","url":"https://api.github.com/users/harpocrates","html_url":"https://github.com/harpocrates","followers_url":"https://api.github.com/users/harpocrates/followers","following_url":"https://api.github.com/users/harpocrates/following{/other_user}","gists_url":"https://api.github.com/users/harpocrates/gists{/gist_id}","starred_url":"https://api.github.com/users/harpocrates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harpocrates/subscriptions","organizations_url":"https://api.github.com/users/harpocrates/orgs","repos_url":"https://api.github.com/users/harpocrates/repos","events_url":"https://api.github.com/users/harpocrates/events{/privacy}","received_events_url":"https://api.github.com/users/harpocrates/received_events","type":"User","site_admin":false},"body":"Should be the straightforward fix #17. Tested it on the following:\r\n```c\r\nint f() {\r\n\t;\r\n\tfor (int i = 0; i < 10;)\r\n\t\ti++;\r\n\treturn 3;\r\n}\r\n```\r\n and got back\r\n```rust\r\npub unsafe fn f() -> i32 {\r\n    { }\r\n    {\r\n        let mut i : i32 = 0i32;\r\n        while i < 10i32 {\r\n            i = i + 1;\r\n        }\r\n    }\r\n    3i32\r\n}\r\n```\r\nNot sure if we should also add some simplifying rules (to get rid of the `{ }`)... let me know what you think. Can't wait to start hacking on this project for real!","created_at":"2016-07-08T19:12:35Z","updated_at":"2016-07-08T19:12:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc3fec623805426ccced32ad0b9e08957bd9316d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jameysharp/corrode/pulls/23/commits","review_comments_url":"https://api.github.com/repos/jameysharp/corrode/pulls/23/comments","review_comment_url":"https://api.github.com/repos/jameysharp/corrode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jameysharp/corrode/issues/23/comments","statuses_url":"https://api.github.com/repos/jameysharp/corrode/statuses/aa8e9c23a495cadc1c5852287a089da6f72ddcb4","head":{"label":"harpocrates:master","ref":"master","sha":"aa8e9c23a495cadc1c5852287a089da6f72ddcb4","user":{"login":"harpocrates","id":10766081,"avatar_url":"https://avatars.githubusercontent.com/u/10766081?v=3","gravatar_id":"","url":"https://api.github.com/users/harpocrates","html_url":"https://github.com/harpocrates","followers_url":"https://api.github.com/users/harpocrates/followers","following_url":"https://api.github.com/users/harpocrates/following{/other_user}","gists_url":"https://api.github.com/users/harpocrates/gists{/gist_id}","starred_url":"https://api.github.com/users/harpocrates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harpocrates/subscriptions","organizations_url":"https://api.github.com/users/harpocrates/orgs","repos_url":"https://api.github.com/users/harpocrates/repos","events_url":"https://api.github.com/users/harpocrates/events{/privacy}","received_events_url":"https://api.github.com/users/harpocrates/received_events","type":"User","site_admin":false},"repo":{"id":62910536,"name":"corrode","full_name":"harpocrates/corrode","owner":{"login":"harpocrates","id":10766081,"avatar_url":"https://avatars.githubusercontent.com/u/10766081?v=3","gravatar_id":"","url":"https://api.github.com/users/harpocrates","html_url":"https://github.com/harpocrates","followers_url":"https://api.github.com/users/harpocrates/followers","following_url":"https://api.github.com/users/harpocrates/following{/other_user}","gists_url":"https://api.github.com/users/harpocrates/gists{/gist_id}","starred_url":"https://api.github.com/users/harpocrates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harpocrates/subscriptions","organizations_url":"https://api.github.com/users/harpocrates/orgs","repos_url":"https://api.github.com/users/harpocrates/repos","events_url":"https://api.github.com/users/harpocrates/events{/privacy}","received_events_url":"https://api.github.com/users/harpocrates/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harpocrates/corrode","description":"C to Rust translator","fork":true,"url":"https://api.github.com/repos/harpocrates/corrode","forks_url":"https://api.github.com/repos/harpocrates/corrode/forks","keys_url":"https://api.github.com/repos/harpocrates/corrode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harpocrates/corrode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harpocrates/corrode/teams","hooks_url":"https://api.github.com/repos/harpocrates/corrode/hooks","issue_events_url":"https://api.github.com/repos/harpocrates/corrode/issues/events{/number}","events_url":"https://api.github.com/repos/harpocrates/corrode/events","assignees_url":"https://api.github.com/repos/harpocrates/corrode/assignees{/user}","branches_url":"https://api.github.com/repos/harpocrates/corrode/branches{/branch}","tags_url":"https://api.github.com/repos/harpocrates/corrode/tags","blobs_url":"https://api.github.com/repos/harpocrates/corrode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harpocrates/corrode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harpocrates/corrode/git/refs{/sha}","trees_url":"https://api.github.com/repos/harpocrates/corrode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harpocrates/corrode/statuses/{sha}","languages_url":"https://api.github.com/repos/harpocrates/corrode/languages","stargazers_url":"https://api.github.com/repos/harpocrates/corrode/stargazers","contributors_url":"https://api.github.com/repos/harpocrates/corrode/contributors","subscribers_url":"https://api.github.com/repos/harpocrates/corrode/subscribers","subscription_url":"https://api.github.com/repos/harpocrates/corrode/subscription","commits_url":"https://api.github.com/repos/harpocrates/corrode/commits{/sha}","git_commits_url":"https://api.github.com/repos/harpocrates/corrode/git/commits{/sha}","comments_url":"https://api.github.com/repos/harpocrates/corrode/comments{/number}","issue_comment_url":"https://api.github.com/repos/harpocrates/corrode/issues/comments{/number}","contents_url":"https://api.github.com/repos/harpocrates/corrode/contents/{+path}","compare_url":"https://api.github.com/repos/harpocrates/corrode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harpocrates/corrode/merges","archive_url":"https://api.github.com/repos/harpocrates/corrode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harpocrates/corrode/downloads","issues_url":"https://api.github.com/repos/harpocrates/corrode/issues{/number}","pulls_url":"https://api.github.com/repos/harpocrates/corrode/pulls{/number}","milestones_url":"https://api.github.com/repos/harpocrates/corrode/milestones{/number}","notifications_url":"https://api.github.com/repos/harpocrates/corrode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harpocrates/corrode/labels{/name}","releases_url":"https://api.github.com/repos/harpocrates/corrode/releases{/id}","deployments_url":"https://api.github.com/repos/harpocrates/corrode/deployments","created_at":"2016-07-08T18:53:48Z","updated_at":"2016-07-08T18:53:49Z","pushed_at":"2016-07-08T19:04:00Z","git_url":"git://github.com/harpocrates/corrode.git","ssh_url":"git@github.com:harpocrates/corrode.git","clone_url":"https://github.com/harpocrates/corrode.git","svn_url":"https://github.com/harpocrates/corrode","homepage":null,"size":163,"stargazers_count":0,"watchers_count":0,"language":"Haskell","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":"jameysharp:master","ref":"master","sha":"2b3131a7d8a6ad5b5b1201dbdf11c87cd8d904ef","user":{"login":"jameysharp","id":865272,"avatar_url":"https://avatars.githubusercontent.com/u/865272?v=3","gravatar_id":"","url":"https://api.github.com/users/jameysharp","html_url":"https://github.com/jameysharp","followers_url":"https://api.github.com/users/jameysharp/followers","following_url":"https://api.github.com/users/jameysharp/following{/other_user}","gists_url":"https://api.github.com/users/jameysharp/gists{/gist_id}","starred_url":"https://api.github.com/users/jameysharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameysharp/subscriptions","organizations_url":"https://api.github.com/users/jameysharp/orgs","repos_url":"https://api.github.com/users/jameysharp/repos","events_url":"https://api.github.com/users/jameysharp/events{/privacy}","received_events_url":"https://api.github.com/users/jameysharp/received_events","type":"User","site_admin":false},"repo":{"id":58161011,"name":"corrode","full_name":"jameysharp/corrode","owner":{"login":"jameysharp","id":865272,"avatar_url":"https://avatars.githubusercontent.com/u/865272?v=3","gravatar_id":"","url":"https://api.github.com/users/jameysharp","html_url":"https://github.com/jameysharp","followers_url":"https://api.github.com/users/jameysharp/followers","following_url":"https://api.github.com/users/jameysharp/following{/other_user}","gists_url":"https://api.github.com/users/jameysharp/gists{/gist_id}","starred_url":"https://api.github.com/users/jameysharp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameysharp/subscriptions","organizations_url":"https://api.github.com/users/jameysharp/orgs","repos_url":"https://api.github.com/users/jameysharp/repos","events_url":"https://api.github.com/users/jameysharp/events{/privacy}","received_events_url":"https://api.github.com/users/jameysharp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jameysharp/corrode","description":"C to Rust translator","fork":false,"url":"https://api.github.com/repos/jameysharp/corrode","forks_url":"https://api.github.com/repos/jameysharp/corrode/forks","keys_url":"https://api.github.com/repos/jameysharp/corrode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jameysharp/corrode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jameysharp/corrode/teams","hooks_url":"https://api.github.com/repos/jameysharp/corrode/hooks","issue_events_url":"https://api.github.com/repos/jameysharp/corrode/issues/events{/number}","events_url":"https://api.github.com/repos/jameysharp/corrode/events","assignees_url":"https://api.github.com/repos/jameysharp/corrode/assignees{/user}","branches_url":"https://api.github.com/repos/jameysharp/corrode/branches{/branch}","tags_url":"https://api.github.com/repos/jameysharp/corrode/tags","blobs_url":"https://api.github.com/repos/jameysharp/corrode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jameysharp/corrode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jameysharp/corrode/git/refs{/sha}","trees_url":"https://api.github.com/repos/jameysharp/corrode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jameysharp/corrode/statuses/{sha}","languages_url":"https://api.github.com/repos/jameysharp/corrode/languages","stargazers_url":"https://api.github.com/repos/jameysharp/corrode/stargazers","contributors_url":"https://api.github.com/repos/jameysharp/corrode/contributors","subscribers_url":"https://api.github.com/repos/jameysharp/corrode/subscribers","subscription_url":"https://api.github.com/repos/jameysharp/corrode/subscription","commits_url":"https://api.github.com/repos/jameysharp/corrode/commits{/sha}","git_commits_url":"https://api.github.com/repos/jameysharp/corrode/git/commits{/sha}","comments_url":"https://api.github.com/repos/jameysharp/corrode/comments{/number}","issue_comment_url":"https://api.github.com/repos/jameysharp/corrode/issues/comments{/number}","contents_url":"https://api.github.com/repos/jameysharp/corrode/contents/{+path}","compare_url":"https://api.github.com/repos/jameysharp/corrode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jameysharp/corrode/merges","archive_url":"https://api.github.com/repos/jameysharp/corrode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jameysharp/corrode/downloads","issues_url":"https://api.github.com/repos/jameysharp/corrode/issues{/number}","pulls_url":"https://api.github.com/repos/jameysharp/corrode/pulls{/number}","milestones_url":"https://api.github.com/repos/jameysharp/corrode/milestones{/number}","notifications_url":"https://api.github.com/repos/jameysharp/corrode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jameysharp/corrode/labels{/name}","releases_url":"https://api.github.com/repos/jameysharp/corrode/releases{/id}","deployments_url":"https://api.github.com/repos/jameysharp/corrode/deployments","created_at":"2016-05-05T21:12:52Z","updated_at":"2016-07-08T19:11:15Z","pushed_at":"2016-07-08T19:12:35Z","git_url":"git://github.com/jameysharp/corrode.git","ssh_url":"git@github.com:jameysharp/corrode.git","clone_url":"https://github.com/jameysharp/corrode.git","svn_url":"https://github.com/jameysharp/corrode","homepage":null,"size":163,"stargazers_count":298,"watchers_count":298,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":14,"forks":17,"open_issues":14,"watchers":298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jameysharp/corrode/pulls/23"},"html":{"href":"https://github.com/jameysharp/corrode/pull/23"},"issue":{"href":"https://api.github.com/repos/jameysharp/corrode/issues/23"},"comments":{"href":"https://api.github.com/repos/jameysharp/corrode/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/jameysharp/corrode/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/jameysharp/corrode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jameysharp/corrode/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/jameysharp/corrode/statuses/aa8e9c23a495cadc1c5852287a089da6f72ddcb4"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":9,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"harpocrates"}}