GitHub PullRequestReviewCommentEvent at 2014-12-29 21:05:55
Repository: neon-lang
Actor: ghewgill
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ghewgill/neon-lang/pulls/comments/22328507","id":22328507,"diff_hunk":"@@ -1268,7 +1270,15 @@ const Statement *Parser::parseVarStatement(Scope *scope, int /*line*/)\n             v = new LocalVariable(name, vars.second, scope, false);\n         }\n         scope->addName(name, v);\n+        varRefs.push_back(new ScalarVariableReference(v, enclosing));\n     }\n+\n+    if (tokens[i].type == ASSIGN) {\n+        ++i;\n+        const Expression *expr = parseExpression(scope);\n+        return new AssignmentStatement(line, varRefs, expr);\n+    }\n+","path":"src/parser.cpp","position":25,"original_position":25,"commit_id":"10c4588c816d82f41d97cf653cee496086280689","original_commit_id":"10c4588c816d82f41d97cf653cee496086280689","user":{"login":"ghewgill","id":17221,"avatar_url":"https://avatars.githubusercontent.com/u/17221?v=3","gravatar_id":"","url":"https://api.github.com/users/ghewgill","html_url":"https://github.com/ghewgill","followers_url":"https://api.github.com/users/ghewgill/followers","following_url":"https://api.github.com/users/ghewgill/following{/other_user}","gists_url":"https://api.github.com/users/ghewgill/gists{/gist_id}","starred_url":"https://api.github.com/users/ghewgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghewgill/subscriptions","organizations_url":"https://api.github.com/users/ghewgill/orgs","repos_url":"https://api.github.com/users/ghewgill/repos","events_url":"https://api.github.com/users/ghewgill/events{/privacy}","received_events_url":"https://api.github.com/users/ghewgill/received_events","type":"User","site_admin":false},"body":"Remove blank line","created_at":"2014-12-29T21:05:55Z","updated_at":"2014-12-29T21:05:55Z","html_url":"https://github.com/ghewgill/neon-lang/pull/13#discussion_r22328507","pull_request_url":"https://api.github.com/repos/ghewgill/neon-lang/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/ghewgill/neon-lang/pulls/comments/22328507"},"html":{"href":"https://github.com/ghewgill/neon-lang/pull/13#discussion_r22328507"},"pull_request":{"href":"https://api.github.com/repos/ghewgill/neon-lang/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/ghewgill/neon-lang/pulls/13","id":26659353,"html_url":"https://github.com/ghewgill/neon-lang/pull/13","diff_url":"https://github.com/ghewgill/neon-lang/pull/13.diff","patch_url":"https://github.com/ghewgill/neon-lang/pull/13.patch","issue_url":"https://api.github.com/repos/ghewgill/neon-lang/issues/13","number":13,"state":"open","locked":false,"title":"Added optional initial value assignment to VAR statement.","user":{"login":"gitlarryf","id":8064499,"avatar_url":"https://avatars.githubusercontent.com/u/8064499?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlarryf","html_url":"https://github.com/gitlarryf","followers_url":"https://api.github.com/users/gitlarryf/followers","following_url":"https://api.github.com/users/gitlarryf/following{/other_user}","gists_url":"https://api.github.com/users/gitlarryf/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlarryf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlarryf/subscriptions","organizations_url":"https://api.github.com/users/gitlarryf/orgs","repos_url":"https://api.github.com/users/gitlarryf/repos","events_url":"https://api.github.com/users/gitlarryf/events{/privacy}","received_events_url":"https://api.github.com/users/gitlarryf/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-29T20:08:38Z","updated_at":"2014-12-29T21:05:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ae8c0ca0096c9995936ce5d5d15e79dc8f4fa46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ghewgill/neon-lang/pulls/13/commits","review_comments_url":"https://api.github.com/repos/ghewgill/neon-lang/pulls/13/comments","review_comment_url":"https://api.github.com/repos/ghewgill/neon-lang/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ghewgill/neon-lang/issues/13/comments","statuses_url":"https://api.github.com/repos/ghewgill/neon-lang/statuses/10c4588c816d82f41d97cf653cee496086280689","head":{"label":"gitlarryf:inline-init","ref":"inline-init","sha":"10c4588c816d82f41d97cf653cee496086280689","user":{"login":"gitlarryf","id":8064499,"avatar_url":"https://avatars.githubusercontent.com/u/8064499?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlarryf","html_url":"https://github.com/gitlarryf","followers_url":"https://api.github.com/users/gitlarryf/followers","following_url":"https://api.github.com/users/gitlarryf/following{/other_user}","gists_url":"https://api.github.com/users/gitlarryf/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlarryf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlarryf/subscriptions","organizations_url":"https://api.github.com/users/gitlarryf/orgs","repos_url":"https://api.github.com/users/gitlarryf/repos","events_url":"https://api.github.com/users/gitlarryf/events{/privacy}","received_events_url":"https://api.github.com/users/gitlarryf/received_events","type":"User","site_admin":false},"repo":{"id":25283698,"name":"simple-lang","full_name":"gitlarryf/simple-lang","owner":{"login":"gitlarryf","id":8064499,"avatar_url":"https://avatars.githubusercontent.com/u/8064499?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlarryf","html_url":"https://github.com/gitlarryf","followers_url":"https://api.github.com/users/gitlarryf/followers","following_url":"https://api.github.com/users/gitlarryf/following{/other_user}","gists_url":"https://api.github.com/users/gitlarryf/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlarryf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlarryf/subscriptions","organizations_url":"https://api.github.com/users/gitlarryf/orgs","repos_url":"https://api.github.com/users/gitlarryf/repos","events_url":"https://api.github.com/users/gitlarryf/events{/privacy}","received_events_url":"https://api.github.com/users/gitlarryf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gitlarryf/simple-lang","description":"Implementation of a simple programming language","fork":true,"url":"https://api.github.com/repos/gitlarryf/simple-lang","forks_url":"https://api.github.com/repos/gitlarryf/simple-lang/forks","keys_url":"https://api.github.com/repos/gitlarryf/simple-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitlarryf/simple-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitlarryf/simple-lang/teams","hooks_url":"https://api.github.com/repos/gitlarryf/simple-lang/hooks","issue_events_url":"https://api.github.com/repos/gitlarryf/simple-lang/issues/events{/number}","events_url":"https://api.github.com/repos/gitlarryf/simple-lang/events","assignees_url":"https://api.github.com/repos/gitlarryf/simple-lang/assignees{/user}","branches_url":"https://api.github.com/repos/gitlarryf/simple-lang/branches{/branch}","tags_url":"https://api.github.com/repos/gitlarryf/simple-lang/tags","blobs_url":"https://api.github.com/repos/gitlarryf/simple-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitlarryf/simple-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitlarryf/simple-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitlarryf/simple-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitlarryf/simple-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/gitlarryf/simple-lang/languages","stargazers_url":"https://api.github.com/repos/gitlarryf/simple-lang/stargazers","contributors_url":"https://api.github.com/repos/gitlarryf/simple-lang/contributors","subscribers_url":"https://api.github.com/repos/gitlarryf/simple-lang/subscribers","subscription_url":"https://api.github.com/repos/gitlarryf/simple-lang/subscription","commits_url":"https://api.github.com/repos/gitlarryf/simple-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitlarryf/simple-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitlarryf/simple-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitlarryf/simple-lang/issues/comments/{number}","contents_url":"https://api.github.com/repos/gitlarryf/simple-lang/contents/{+path}","compare_url":"https://api.github.com/repos/gitlarryf/simple-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitlarryf/simple-lang/merges","archive_url":"https://api.github.com/repos/gitlarryf/simple-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitlarryf/simple-lang/downloads","issues_url":"https://api.github.com/repos/gitlarryf/simple-lang/issues{/number}","pulls_url":"https://api.github.com/repos/gitlarryf/simple-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/gitlarryf/simple-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/gitlarryf/simple-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitlarryf/simple-lang/labels{/name}","releases_url":"https://api.github.com/repos/gitlarryf/simple-lang/releases{/id}","created_at":"2014-10-16T02:48:55Z","updated_at":"2014-12-16T07:12:43Z","pushed_at":"2014-12-29T20:08:13Z","git_url":"git://github.com/gitlarryf/simple-lang.git","ssh_url":"git@github.com:gitlarryf/simple-lang.git","clone_url":"https://github.com/gitlarryf/simple-lang.git","svn_url":"https://github.com/gitlarryf/simple-lang","homepage":null,"size":8847,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ghewgill:master","ref":"master","sha":"0629e7c3877794bd405cb0c5459de42063742d99","user":{"login":"ghewgill","id":17221,"avatar_url":"https://avatars.githubusercontent.com/u/17221?v=3","gravatar_id":"","url":"https://api.github.com/users/ghewgill","html_url":"https://github.com/ghewgill","followers_url":"https://api.github.com/users/ghewgill/followers","following_url":"https://api.github.com/users/ghewgill/following{/other_user}","gists_url":"https://api.github.com/users/ghewgill/gists{/gist_id}","starred_url":"https://api.github.com/users/ghewgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghewgill/subscriptions","organizations_url":"https://api.github.com/users/ghewgill/orgs","repos_url":"https://api.github.com/users/ghewgill/repos","events_url":"https://api.github.com/users/ghewgill/events{/privacy}","received_events_url":"https://api.github.com/users/ghewgill/received_events","type":"User","site_admin":false},"repo":{"id":22769864,"name":"neon-lang","full_name":"ghewgill/neon-lang","owner":{"login":"ghewgill","id":17221,"avatar_url":"https://avatars.githubusercontent.com/u/17221?v=3","gravatar_id":"","url":"https://api.github.com/users/ghewgill","html_url":"https://github.com/ghewgill","followers_url":"https://api.github.com/users/ghewgill/followers","following_url":"https://api.github.com/users/ghewgill/following{/other_user}","gists_url":"https://api.github.com/users/ghewgill/gists{/gist_id}","starred_url":"https://api.github.com/users/ghewgill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghewgill/subscriptions","organizations_url":"https://api.github.com/users/ghewgill/orgs","repos_url":"https://api.github.com/users/ghewgill/repos","events_url":"https://api.github.com/users/ghewgill/events{/privacy}","received_events_url":"https://api.github.com/users/ghewgill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ghewgill/neon-lang","description":"Implementation of a simple programming language","fork":false,"url":"https://api.github.com/repos/ghewgill/neon-lang","forks_url":"https://api.github.com/repos/ghewgill/neon-lang/forks","keys_url":"https://api.github.com/repos/ghewgill/neon-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ghewgill/neon-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ghewgill/neon-lang/teams","hooks_url":"https://api.github.com/repos/ghewgill/neon-lang/hooks","issue_events_url":"https://api.github.com/repos/ghewgill/neon-lang/issues/events{/number}","events_url":"https://api.github.com/repos/ghewgill/neon-lang/events","assignees_url":"https://api.github.com/repos/ghewgill/neon-lang/assignees{/user}","branches_url":"https://api.github.com/repos/ghewgill/neon-lang/branches{/branch}","tags_url":"https://api.github.com/repos/ghewgill/neon-lang/tags","blobs_url":"https://api.github.com/repos/ghewgill/neon-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ghewgill/neon-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ghewgill/neon-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/ghewgill/neon-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ghewgill/neon-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/ghewgill/neon-lang/languages","stargazers_url":"https://api.github.com/repos/ghewgill/neon-lang/stargazers","contributors_url":"https://api.github.com/repos/ghewgill/neon-lang/contributors","subscribers_url":"https://api.github.com/repos/ghewgill/neon-lang/subscribers","subscription_url":"https://api.github.com/repos/ghewgill/neon-lang/subscription","commits_url":"https://api.github.com/repos/ghewgill/neon-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/ghewgill/neon-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/ghewgill/neon-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/ghewgill/neon-lang/issues/comments/{number}","contents_url":"https://api.github.com/repos/ghewgill/neon-lang/contents/{+path}","compare_url":"https://api.github.com/repos/ghewgill/neon-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ghewgill/neon-lang/merges","archive_url":"https://api.github.com/repos/ghewgill/neon-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ghewgill/neon-lang/downloads","issues_url":"https://api.github.com/repos/ghewgill/neon-lang/issues{/number}","pulls_url":"https://api.github.com/repos/ghewgill/neon-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/ghewgill/neon-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/ghewgill/neon-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ghewgill/neon-lang/labels{/name}","releases_url":"https://api.github.com/repos/ghewgill/neon-lang/releases{/id}","created_at":"2014-08-08T19:59:17Z","updated_at":"2014-12-27T22:53:52Z","pushed_at":"2014-12-27T22:53:51Z","git_url":"git://github.com/ghewgill/neon-lang.git","ssh_url":"git@github.com:ghewgill/neon-lang.git","clone_url":"https://github.com/ghewgill/neon-lang.git","svn_url":"https://github.com/ghewgill/neon-lang","homepage":null,"size":10007,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ghewgill/neon-lang/pulls/13"},"html":{"href":"https://github.com/ghewgill/neon-lang/pull/13"},"issue":{"href":"https://api.github.com/repos/ghewgill/neon-lang/issues/13"},"comments":{"href":"https://api.github.com/repos/ghewgill/neon-lang/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/ghewgill/neon-lang/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/ghewgill/neon-lang/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ghewgill/neon-lang/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/ghewgill/neon-lang/statuses/10c4588c816d82f41d97cf653cee496086280689"}}}}