{"action":"created","comment":{"url":"https://api.github.com/repos/salesforce/runway-compiler/pulls/comments/73075780","id":73075780,"diff_hunk":"@@ -613,7 +613,15 @@ let whileLoop = seqMap(keywords.while,\n let ifElse = seqMap(keywords.if,\n   expr,\n   block,\n-  (keywords.else).then(block).times(0, 1).map((elses) => {\n+  (keywords.else).then(alt(block, lazy(() => {\n+    return ifElse;\n+  }).source().map((elseIf) =>({","path":"lib/parser.js","position":7,"original_position":7,"commit_id":"e6ccebd51c538388eafa6dec8676cf9e8ab10de6","original_commit_id":"e6ccebd51c538388eafa6dec8676cf9e8ab10de6","user":{"login":"cstlee","id":905249,"avatar_url":"https://avatars.githubusercontent.com/u/905249?v=3","gravatar_id":"","url":"https://api.github.com/users/cstlee","html_url":"https://github.com/cstlee","followers_url":"https://api.github.com/users/cstlee/followers","following_url":"https://api.github.com/users/cstlee/following{/other_user}","gists_url":"https://api.github.com/users/cstlee/gists{/gist_id}","starred_url":"https://api.github.com/users/cstlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstlee/subscriptions","organizations_url":"https://api.github.com/users/cstlee/orgs","repos_url":"https://api.github.com/users/cstlee/repos","events_url":"https://api.github.com/users/cstlee/events{/privacy}","received_events_url":"https://api.github.com/users/cstlee/received_events","type":"User","site_admin":false},"body":"Oh, THAT kind of \"entirety of ifElse.\"  Yep, will do.","created_at":"2016-08-02T00:11:03Z","updated_at":"2016-08-02T00:11:03Z","html_url":"https://github.com/salesforce/runway-compiler/pull/15#discussion_r73075780","pull_request_url":"https://api.github.com/repos/salesforce/runway-compiler/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/salesforce/runway-compiler/pulls/comments/73075780"},"html":{"href":"https://github.com/salesforce/runway-compiler/pull/15#discussion_r73075780"},"pull_request":{"href":"https://api.github.com/repos/salesforce/runway-compiler/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/salesforce/runway-compiler/pulls/15","id":79654322,"html_url":"https://github.com/salesforce/runway-compiler/pull/15","diff_url":"https://github.com/salesforce/runway-compiler/pull/15.diff","patch_url":"https://github.com/salesforce/runway-compiler/pull/15.patch","issue_url":"https://api.github.com/repos/salesforce/runway-compiler/issues/15","number":15,"state":"open","locked":false,"title":"Add `else if` to language","user":{"login":"cstlee","id":905249,"avatar_url":"https://avatars.githubusercontent.com/u/905249?v=3","gravatar_id":"","url":"https://api.github.com/users/cstlee","html_url":"https://github.com/cstlee","followers_url":"https://api.github.com/users/cstlee/followers","following_url":"https://api.github.com/users/cstlee/following{/other_user}","gists_url":"https://api.github.com/users/cstlee/gists{/gist_id}","starred_url":"https://api.github.com/users/cstlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstlee/subscriptions","organizations_url":"https://api.github.com/users/cstlee/orgs","repos_url":"https://api.github.com/users/cstlee/repos","events_url":"https://api.github.com/users/cstlee/events{/privacy}","received_events_url":"https://api.github.com/users/cstlee/received_events","type":"User","site_admin":false},"body":"The language now provides `else if` as syntactic sugar for an `if`\r\nstatement nested within an `else` block.\r\n\r\nClose #14","created_at":"2016-08-01T23:32:46Z","updated_at":"2016-08-02T00:11:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7076a1d32e36cc5da2c477cc03a5389d7800206","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/salesforce/runway-compiler/pulls/15/commits","review_comments_url":"https://api.github.com/repos/salesforce/runway-compiler/pulls/15/comments","review_comment_url":"https://api.github.com/repos/salesforce/runway-compiler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/salesforce/runway-compiler/issues/15/comments","statuses_url":"https://api.github.com/repos/salesforce/runway-compiler/statuses/e6ccebd51c538388eafa6dec8676cf9e8ab10de6","head":{"label":"cstlee:master","ref":"master","sha":"e6ccebd51c538388eafa6dec8676cf9e8ab10de6","user":{"login":"cstlee","id":905249,"avatar_url":"https://avatars.githubusercontent.com/u/905249?v=3","gravatar_id":"","url":"https://api.github.com/users/cstlee","html_url":"https://github.com/cstlee","followers_url":"https://api.github.com/users/cstlee/followers","following_url":"https://api.github.com/users/cstlee/following{/other_user}","gists_url":"https://api.github.com/users/cstlee/gists{/gist_id}","starred_url":"https://api.github.com/users/cstlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstlee/subscriptions","organizations_url":"https://api.github.com/users/cstlee/orgs","repos_url":"https://api.github.com/users/cstlee/repos","events_url":"https://api.github.com/users/cstlee/events{/privacy}","received_events_url":"https://api.github.com/users/cstlee/received_events","type":"User","site_admin":false},"repo":{"id":63982712,"name":"runway-compiler","full_name":"cstlee/runway-compiler","owner":{"login":"cstlee","id":905249,"avatar_url":"https://avatars.githubusercontent.com/u/905249?v=3","gravatar_id":"","url":"https://api.github.com/users/cstlee","html_url":"https://github.com/cstlee","followers_url":"https://api.github.com/users/cstlee/followers","following_url":"https://api.github.com/users/cstlee/following{/other_user}","gists_url":"https://api.github.com/users/cstlee/gists{/gist_id}","starred_url":"https://api.github.com/users/cstlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstlee/subscriptions","organizations_url":"https://api.github.com/users/cstlee/orgs","repos_url":"https://api.github.com/users/cstlee/repos","events_url":"https://api.github.com/users/cstlee/events{/privacy}","received_events_url":"https://api.github.com/users/cstlee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cstlee/runway-compiler","description":"Parses and executes Runway models of distributed systems","fork":true,"url":"https://api.github.com/repos/cstlee/runway-compiler","forks_url":"https://api.github.com/repos/cstlee/runway-compiler/forks","keys_url":"https://api.github.com/repos/cstlee/runway-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cstlee/runway-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cstlee/runway-compiler/teams","hooks_url":"https://api.github.com/repos/cstlee/runway-compiler/hooks","issue_events_url":"https://api.github.com/repos/cstlee/runway-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/cstlee/runway-compiler/events","assignees_url":"https://api.github.com/repos/cstlee/runway-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/cstlee/runway-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/cstlee/runway-compiler/tags","blobs_url":"https://api.github.com/repos/cstlee/runway-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cstlee/runway-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cstlee/runway-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/cstlee/runway-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cstlee/runway-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/cstlee/runway-compiler/languages","stargazers_url":"https://api.github.com/repos/cstlee/runway-compiler/stargazers","contributors_url":"https://api.github.com/repos/cstlee/runway-compiler/contributors","subscribers_url":"https://api.github.com/repos/cstlee/runway-compiler/subscribers","subscription_url":"https://api.github.com/repos/cstlee/runway-compiler/subscription","commits_url":"https://api.github.com/repos/cstlee/runway-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/cstlee/runway-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/cstlee/runway-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/cstlee/runway-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/cstlee/runway-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/cstlee/runway-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cstlee/runway-compiler/merges","archive_url":"https://api.github.com/repos/cstlee/runway-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cstlee/runway-compiler/downloads","issues_url":"https://api.github.com/repos/cstlee/runway-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/cstlee/runway-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/cstlee/runway-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/cstlee/runway-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cstlee/runway-compiler/labels{/name}","releases_url":"https://api.github.com/repos/cstlee/runway-compiler/releases{/id}","deployments_url":"https://api.github.com/repos/cstlee/runway-compiler/deployments","created_at":"2016-07-22T20:57:14Z","updated_at":"2016-07-22T20:57:15Z","pushed_at":"2016-08-01T23:30:34Z","git_url":"git://github.com/cstlee/runway-compiler.git","ssh_url":"git@github.com:cstlee/runway-compiler.git","clone_url":"https://github.com/cstlee/runway-compiler.git","svn_url":"https://github.com/cstlee/runway-compiler","homepage":"https://runway.systems","size":448,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"salesforce:master","ref":"master","sha":"29d814da4efe8e587112cf5ec1ad59a49b370f32","user":{"login":"salesforce","id":453694,"avatar_url":"https://avatars.githubusercontent.com/u/453694?v=3","gravatar_id":"","url":"https://api.github.com/users/salesforce","html_url":"https://github.com/salesforce","followers_url":"https://api.github.com/users/salesforce/followers","following_url":"https://api.github.com/users/salesforce/following{/other_user}","gists_url":"https://api.github.com/users/salesforce/gists{/gist_id}","starred_url":"https://api.github.com/users/salesforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salesforce/subscriptions","organizations_url":"https://api.github.com/users/salesforce/orgs","repos_url":"https://api.github.com/users/salesforce/repos","events_url":"https://api.github.com/users/salesforce/events{/privacy}","received_events_url":"https://api.github.com/users/salesforce/received_events","type":"Organization","site_admin":false},"repo":{"id":57459334,"name":"runway-compiler","full_name":"salesforce/runway-compiler","owner":{"login":"salesforce","id":453694,"avatar_url":"https://avatars.githubusercontent.com/u/453694?v=3","gravatar_id":"","url":"https://api.github.com/users/salesforce","html_url":"https://github.com/salesforce","followers_url":"https://api.github.com/users/salesforce/followers","following_url":"https://api.github.com/users/salesforce/following{/other_user}","gists_url":"https://api.github.com/users/salesforce/gists{/gist_id}","starred_url":"https://api.github.com/users/salesforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salesforce/subscriptions","organizations_url":"https://api.github.com/users/salesforce/orgs","repos_url":"https://api.github.com/users/salesforce/repos","events_url":"https://api.github.com/users/salesforce/events{/privacy}","received_events_url":"https://api.github.com/users/salesforce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/salesforce/runway-compiler","description":"Parses and executes Runway models of distributed systems","fork":false,"url":"https://api.github.com/repos/salesforce/runway-compiler","forks_url":"https://api.github.com/repos/salesforce/runway-compiler/forks","keys_url":"https://api.github.com/repos/salesforce/runway-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salesforce/runway-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salesforce/runway-compiler/teams","hooks_url":"https://api.github.com/repos/salesforce/runway-compiler/hooks","issue_events_url":"https://api.github.com/repos/salesforce/runway-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/salesforce/runway-compiler/events","assignees_url":"https://api.github.com/repos/salesforce/runway-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/salesforce/runway-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/salesforce/runway-compiler/tags","blobs_url":"https://api.github.com/repos/salesforce/runway-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salesforce/runway-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salesforce/runway-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/salesforce/runway-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salesforce/runway-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/salesforce/runway-compiler/languages","stargazers_url":"https://api.github.com/repos/salesforce/runway-compiler/stargazers","contributors_url":"https://api.github.com/repos/salesforce/runway-compiler/contributors","subscribers_url":"https://api.github.com/repos/salesforce/runway-compiler/subscribers","subscription_url":"https://api.github.com/repos/salesforce/runway-compiler/subscription","commits_url":"https://api.github.com/repos/salesforce/runway-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/salesforce/runway-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/salesforce/runway-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/salesforce/runway-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/salesforce/runway-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/salesforce/runway-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salesforce/runway-compiler/merges","archive_url":"https://api.github.com/repos/salesforce/runway-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salesforce/runway-compiler/downloads","issues_url":"https://api.github.com/repos/salesforce/runway-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/salesforce/runway-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/salesforce/runway-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/salesforce/runway-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salesforce/runway-compiler/labels{/name}","releases_url":"https://api.github.com/repos/salesforce/runway-compiler/releases{/id}","deployments_url":"https://api.github.com/repos/salesforce/runway-compiler/deployments","created_at":"2016-04-30T19:58:23Z","updated_at":"2016-07-28T13:34:38Z","pushed_at":"2016-08-01T23:32:46Z","git_url":"git://github.com/salesforce/runway-compiler.git","ssh_url":"git@github.com:salesforce/runway-compiler.git","clone_url":"https://github.com/salesforce/runway-compiler.git","svn_url":"https://github.com/salesforce/runway-compiler","homepage":"https://runway.systems","size":448,"stargazers_count":33,"watchers_count":33,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/salesforce/runway-compiler/pulls/15"},"html":{"href":"https://github.com/salesforce/runway-compiler/pull/15"},"issue":{"href":"https://api.github.com/repos/salesforce/runway-compiler/issues/15"},"comments":{"href":"https://api.github.com/repos/salesforce/runway-compiler/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/salesforce/runway-compiler/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/salesforce/runway-compiler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/salesforce/runway-compiler/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/salesforce/runway-compiler/statuses/e6ccebd51c538388eafa6dec8676cf9e8ab10de6"}}}}
{"actor":{"display_login":"cstlee"}}