{"action":"created","comment":{"url":"https://api.github.com/repos/wyvernlang/wyvern/pulls/comments/52832899","id":52832899,"diff_hunk":"@@ -459,12 +459,27 @@ Type Type() :\n \t\texp = build.invocation(exp, id.image, null, loc(id));\n \t}\n   \tid = id2;\n-  })* {\n-\tif (exp == null)\n-\t\treturn build.nominalType(id.image, loc(id));\n-  \telse\n-  \t\treturn build.qualifiedType(exp, id2.image);\n-  }\n+ })* (<TARROW> arrowResult = Type() )? {\n+    if (arrowResult == null) {\n+        if(exp == null) {\n+\t\t    return build.nominalType(id.image, loc(id));\n+        } else {\n+  \t\t    return build.qualifiedType(exp, id2.image);\n+        }\n+    } else {\n+        if(exp == null) {\n+            return build.arrowType(\n+                build.nominalType(id.image, loc(id)),\n+                arrowResult\n+            );\n+        } else {\n+            return build.arrowType(\n+                build.nominalType(id.image, loc(id)),","path":"tools/src/wyvern/tools/parsing/coreparser/WyvernParser.jj","position":34,"original_position":34,"commit_id":"64548e1765a04c2e6c58d1722f42d4548fdd5142","original_commit_id":"64548e1765a04c2e6c58d1722f42d4548fdd5142","user":{"login":"JonathanAldrich","id":2341533,"avatar_url":"https://avatars.githubusercontent.com/u/2341533?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanAldrich","html_url":"https://github.com/JonathanAldrich","followers_url":"https://api.github.com/users/JonathanAldrich/followers","following_url":"https://api.github.com/users/JonathanAldrich/following{/other_user}","gists_url":"https://api.github.com/users/JonathanAldrich/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanAldrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanAldrich/subscriptions","organizations_url":"https://api.github.com/users/JonathanAldrich/orgs","repos_url":"https://api.github.com/users/JonathanAldrich/repos","events_url":"https://api.github.com/users/JonathanAldrich/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanAldrich/received_events","type":"User","site_admin":false},"body":"This should build a qualifiedType, I believe, as above","created_at":"2016-02-13T20:17:40Z","updated_at":"2016-02-13T20:17:40Z","html_url":"https://github.com/wyvernlang/wyvern/pull/65#discussion_r52832899","pull_request_url":"https://api.github.com/repos/wyvernlang/wyvern/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/wyvernlang/wyvern/pulls/comments/52832899"},"html":{"href":"https://github.com/wyvernlang/wyvern/pull/65#discussion_r52832899"},"pull_request":{"href":"https://api.github.com/repos/wyvernlang/wyvern/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/wyvernlang/wyvern/pulls/65","id":57366877,"html_url":"https://github.com/wyvernlang/wyvern/pull/65","diff_url":"https://github.com/wyvernlang/wyvern/pull/65.diff","patch_url":"https://github.com/wyvernlang/wyvern/pull/65.patch","issue_url":"https://api.github.com/repos/wyvernlang/wyvern/issues/65","number":65,"state":"open","locked":false,"title":"Adding in an arrow sugar for function types","user":{"login":"RobbieMcKinstry","id":4955075,"avatar_url":"https://avatars.githubusercontent.com/u/4955075?v=3","gravatar_id":"","url":"https://api.github.com/users/RobbieMcKinstry","html_url":"https://github.com/RobbieMcKinstry","followers_url":"https://api.github.com/users/RobbieMcKinstry/followers","following_url":"https://api.github.com/users/RobbieMcKinstry/following{/other_user}","gists_url":"https://api.github.com/users/RobbieMcKinstry/gists{/gist_id}","starred_url":"https://api.github.com/users/RobbieMcKinstry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobbieMcKinstry/subscriptions","organizations_url":"https://api.github.com/users/RobbieMcKinstry/orgs","repos_url":"https://api.github.com/users/RobbieMcKinstry/repos","events_url":"https://api.github.com/users/RobbieMcKinstry/events{/privacy}","received_events_url":"https://api.github.com/users/RobbieMcKinstry/received_events","type":"User","site_admin":false},"body":"This guy adds a sugar for representing parameter and return types.\r\nFor example, `val identity: system.Int->system.Int = (x: system.Int) => x\\n` creates a lambda function that returns it's argument. Note the Haskell-esque arrow sugar on the left hand side of the assignment. That's the sugar added by this commit.","created_at":"2016-01-27T14:29:00Z","updated_at":"2016-02-13T20:17:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd3385169bc86797e2fcf2e402c59592d7966404","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wyvernlang/wyvern/pulls/65/commits","review_comments_url":"https://api.github.com/repos/wyvernlang/wyvern/pulls/65/comments","review_comment_url":"https://api.github.com/repos/wyvernlang/wyvern/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wyvernlang/wyvern/issues/65/comments","statuses_url":"https://api.github.com/repos/wyvernlang/wyvern/statuses/64548e1765a04c2e6c58d1722f42d4548fdd5142","head":{"label":"wyvernlang:function-type-sugar","ref":"function-type-sugar","sha":"64548e1765a04c2e6c58d1722f42d4548fdd5142","user":{"login":"wyvernlang","id":2325762,"avatar_url":"https://avatars.githubusercontent.com/u/2325762?v=3","gravatar_id":"","url":"https://api.github.com/users/wyvernlang","html_url":"https://github.com/wyvernlang","followers_url":"https://api.github.com/users/wyvernlang/followers","following_url":"https://api.github.com/users/wyvernlang/following{/other_user}","gists_url":"https://api.github.com/users/wyvernlang/gists{/gist_id}","starred_url":"https://api.github.com/users/wyvernlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyvernlang/subscriptions","organizations_url":"https://api.github.com/users/wyvernlang/orgs","repos_url":"https://api.github.com/users/wyvernlang/repos","events_url":"https://api.github.com/users/wyvernlang/events{/privacy}","received_events_url":"https://api.github.com/users/wyvernlang/received_events","type":"Organization","site_admin":false},"repo":{"id":5766975,"name":"wyvern","full_name":"wyvernlang/wyvern","owner":{"login":"wyvernlang","id":2325762,"avatar_url":"https://avatars.githubusercontent.com/u/2325762?v=3","gravatar_id":"","url":"https://api.github.com/users/wyvernlang","html_url":"https://github.com/wyvernlang","followers_url":"https://api.github.com/users/wyvernlang/followers","following_url":"https://api.github.com/users/wyvernlang/following{/other_user}","gists_url":"https://api.github.com/users/wyvernlang/gists{/gist_id}","starred_url":"https://api.github.com/users/wyvernlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyvernlang/subscriptions","organizations_url":"https://api.github.com/users/wyvernlang/orgs","repos_url":"https://api.github.com/users/wyvernlang/repos","events_url":"https://api.github.com/users/wyvernlang/events{/privacy}","received_events_url":"https://api.github.com/users/wyvernlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wyvernlang/wyvern","description":"The Wyvern programming language.","fork":false,"url":"https://api.github.com/repos/wyvernlang/wyvern","forks_url":"https://api.github.com/repos/wyvernlang/wyvern/forks","keys_url":"https://api.github.com/repos/wyvernlang/wyvern/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wyvernlang/wyvern/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wyvernlang/wyvern/teams","hooks_url":"https://api.github.com/repos/wyvernlang/wyvern/hooks","issue_events_url":"https://api.github.com/repos/wyvernlang/wyvern/issues/events{/number}","events_url":"https://api.github.com/repos/wyvernlang/wyvern/events","assignees_url":"https://api.github.com/repos/wyvernlang/wyvern/assignees{/user}","branches_url":"https://api.github.com/repos/wyvernlang/wyvern/branches{/branch}","tags_url":"https://api.github.com/repos/wyvernlang/wyvern/tags","blobs_url":"https://api.github.com/repos/wyvernlang/wyvern/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wyvernlang/wyvern/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wyvernlang/wyvern/git/refs{/sha}","trees_url":"https://api.github.com/repos/wyvernlang/wyvern/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wyvernlang/wyvern/statuses/{sha}","languages_url":"https://api.github.com/repos/wyvernlang/wyvern/languages","stargazers_url":"https://api.github.com/repos/wyvernlang/wyvern/stargazers","contributors_url":"https://api.github.com/repos/wyvernlang/wyvern/contributors","subscribers_url":"https://api.github.com/repos/wyvernlang/wyvern/subscribers","subscription_url":"https://api.github.com/repos/wyvernlang/wyvern/subscription","commits_url":"https://api.github.com/repos/wyvernlang/wyvern/commits{/sha}","git_commits_url":"https://api.github.com/repos/wyvernlang/wyvern/git/commits{/sha}","comments_url":"https://api.github.com/repos/wyvernlang/wyvern/comments{/number}","issue_comment_url":"https://api.github.com/repos/wyvernlang/wyvern/issues/comments{/number}","contents_url":"https://api.github.com/repos/wyvernlang/wyvern/contents/{+path}","compare_url":"https://api.github.com/repos/wyvernlang/wyvern/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wyvernlang/wyvern/merges","archive_url":"https://api.github.com/repos/wyvernlang/wyvern/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wyvernlang/wyvern/downloads","issues_url":"https://api.github.com/repos/wyvernlang/wyvern/issues{/number}","pulls_url":"https://api.github.com/repos/wyvernlang/wyvern/pulls{/number}","milestones_url":"https://api.github.com/repos/wyvernlang/wyvern/milestones{/number}","notifications_url":"https://api.github.com/repos/wyvernlang/wyvern/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wyvernlang/wyvern/labels{/name}","releases_url":"https://api.github.com/repos/wyvernlang/wyvern/releases{/id}","deployments_url":"https://api.github.com/repos/wyvernlang/wyvern/deployments","created_at":"2012-09-11T15:17:20Z","updated_at":"2016-01-28T22:47:23Z","pushed_at":"2016-02-13T20:13:07Z","git_url":"git://github.com/wyvernlang/wyvern.git","ssh_url":"git@github.com:wyvernlang/wyvern.git","clone_url":"https://github.com/wyvernlang/wyvern.git","svn_url":"https://github.com/wyvernlang/wyvern","homepage":"https://www.cs.cmu.edu/~aldrich/wyvern/","size":19973,"stargazers_count":399,"watchers_count":399,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":48,"mirror_url":null,"open_issues_count":14,"forks":48,"open_issues":14,"watchers":399,"default_branch":"master"}},"base":{"label":"wyvernlang:master","ref":"master","sha":"4b7c1995003cee97ba9b35727404d35de1466001","user":{"login":"wyvernlang","id":2325762,"avatar_url":"https://avatars.githubusercontent.com/u/2325762?v=3","gravatar_id":"","url":"https://api.github.com/users/wyvernlang","html_url":"https://github.com/wyvernlang","followers_url":"https://api.github.com/users/wyvernlang/followers","following_url":"https://api.github.com/users/wyvernlang/following{/other_user}","gists_url":"https://api.github.com/users/wyvernlang/gists{/gist_id}","starred_url":"https://api.github.com/users/wyvernlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyvernlang/subscriptions","organizations_url":"https://api.github.com/users/wyvernlang/orgs","repos_url":"https://api.github.com/users/wyvernlang/repos","events_url":"https://api.github.com/users/wyvernlang/events{/privacy}","received_events_url":"https://api.github.com/users/wyvernlang/received_events","type":"Organization","site_admin":false},"repo":{"id":5766975,"name":"wyvern","full_name":"wyvernlang/wyvern","owner":{"login":"wyvernlang","id":2325762,"avatar_url":"https://avatars.githubusercontent.com/u/2325762?v=3","gravatar_id":"","url":"https://api.github.com/users/wyvernlang","html_url":"https://github.com/wyvernlang","followers_url":"https://api.github.com/users/wyvernlang/followers","following_url":"https://api.github.com/users/wyvernlang/following{/other_user}","gists_url":"https://api.github.com/users/wyvernlang/gists{/gist_id}","starred_url":"https://api.github.com/users/wyvernlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyvernlang/subscriptions","organizations_url":"https://api.github.com/users/wyvernlang/orgs","repos_url":"https://api.github.com/users/wyvernlang/repos","events_url":"https://api.github.com/users/wyvernlang/events{/privacy}","received_events_url":"https://api.github.com/users/wyvernlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wyvernlang/wyvern","description":"The Wyvern programming language.","fork":false,"url":"https://api.github.com/repos/wyvernlang/wyvern","forks_url":"https://api.github.com/repos/wyvernlang/wyvern/forks","keys_url":"https://api.github.com/repos/wyvernlang/wyvern/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wyvernlang/wyvern/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wyvernlang/wyvern/teams","hooks_url":"https://api.github.com/repos/wyvernlang/wyvern/hooks","issue_events_url":"https://api.github.com/repos/wyvernlang/wyvern/issues/events{/number}","events_url":"https://api.github.com/repos/wyvernlang/wyvern/events","assignees_url":"https://api.github.com/repos/wyvernlang/wyvern/assignees{/user}","branches_url":"https://api.github.com/repos/wyvernlang/wyvern/branches{/branch}","tags_url":"https://api.github.com/repos/wyvernlang/wyvern/tags","blobs_url":"https://api.github.com/repos/wyvernlang/wyvern/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wyvernlang/wyvern/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wyvernlang/wyvern/git/refs{/sha}","trees_url":"https://api.github.com/repos/wyvernlang/wyvern/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wyvernlang/wyvern/statuses/{sha}","languages_url":"https://api.github.com/repos/wyvernlang/wyvern/languages","stargazers_url":"https://api.github.com/repos/wyvernlang/wyvern/stargazers","contributors_url":"https://api.github.com/repos/wyvernlang/wyvern/contributors","subscribers_url":"https://api.github.com/repos/wyvernlang/wyvern/subscribers","subscription_url":"https://api.github.com/repos/wyvernlang/wyvern/subscription","commits_url":"https://api.github.com/repos/wyvernlang/wyvern/commits{/sha}","git_commits_url":"https://api.github.com/repos/wyvernlang/wyvern/git/commits{/sha}","comments_url":"https://api.github.com/repos/wyvernlang/wyvern/comments{/number}","issue_comment_url":"https://api.github.com/repos/wyvernlang/wyvern/issues/comments{/number}","contents_url":"https://api.github.com/repos/wyvernlang/wyvern/contents/{+path}","compare_url":"https://api.github.com/repos/wyvernlang/wyvern/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wyvernlang/wyvern/merges","archive_url":"https://api.github.com/repos/wyvernlang/wyvern/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wyvernlang/wyvern/downloads","issues_url":"https://api.github.com/repos/wyvernlang/wyvern/issues{/number}","pulls_url":"https://api.github.com/repos/wyvernlang/wyvern/pulls{/number}","milestones_url":"https://api.github.com/repos/wyvernlang/wyvern/milestones{/number}","notifications_url":"https://api.github.com/repos/wyvernlang/wyvern/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wyvernlang/wyvern/labels{/name}","releases_url":"https://api.github.com/repos/wyvernlang/wyvern/releases{/id}","deployments_url":"https://api.github.com/repos/wyvernlang/wyvern/deployments","created_at":"2012-09-11T15:17:20Z","updated_at":"2016-01-28T22:47:23Z","pushed_at":"2016-02-13T20:13:07Z","git_url":"git://github.com/wyvernlang/wyvern.git","ssh_url":"git@github.com:wyvernlang/wyvern.git","clone_url":"https://github.com/wyvernlang/wyvern.git","svn_url":"https://github.com/wyvernlang/wyvern","homepage":"https://www.cs.cmu.edu/~aldrich/wyvern/","size":19973,"stargazers_count":399,"watchers_count":399,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":48,"mirror_url":null,"open_issues_count":14,"forks":48,"open_issues":14,"watchers":399,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wyvernlang/wyvern/pulls/65"},"html":{"href":"https://github.com/wyvernlang/wyvern/pull/65"},"issue":{"href":"https://api.github.com/repos/wyvernlang/wyvern/issues/65"},"comments":{"href":"https://api.github.com/repos/wyvernlang/wyvern/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/wyvernlang/wyvern/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/wyvernlang/wyvern/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wyvernlang/wyvern/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/wyvernlang/wyvern/statuses/64548e1765a04c2e6c58d1722f42d4548fdd5142"}}}}