{"action":"created","issue":{"url":"https://api.github.com/repos/keean/zenscript/issues/6","repository_url":"https://api.github.com/repos/keean/zenscript","labels_url":"https://api.github.com/repos/keean/zenscript/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/keean/zenscript/issues/6/comments","events_url":"https://api.github.com/repos/keean/zenscript/issues/6/events","html_url":"https://github.com/keean/zenscript/issues/6","id":178156201,"number":6,"title":"Function Syntax","user":{"login":"keean","id":508384,"avatar_url":"https://avatars.githubusercontent.com/u/508384?v=3","gravatar_id":"","url":"https://api.github.com/users/keean","html_url":"https://github.com/keean","followers_url":"https://api.github.com/users/keean/followers","following_url":"https://api.github.com/users/keean/following{/other_user}","gists_url":"https://api.github.com/users/keean/gists{/gist_id}","starred_url":"https://api.github.com/users/keean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keean/subscriptions","organizations_url":"https://api.github.com/users/keean/orgs","repos_url":"https://api.github.com/users/keean/repos","events_url":"https://api.github.com/users/keean/events{/privacy}","received_events_url":"https://api.github.com/users/keean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2016-09-20T19:33:56Z","updated_at":"2016-09-21T16:21:46Z","closed_at":null,"body":"One of the first things we need to do is decide on a function syntax, for application and definition."},"comment":{"url":"https://api.github.com/repos/keean/zenscript/issues/comments/248664743","html_url":"https://github.com/keean/zenscript/issues/6#issuecomment-248664743","issue_url":"https://api.github.com/repos/keean/zenscript/issues/6","id":248664743,"user":{"login":"keean","id":508384,"avatar_url":"https://avatars.githubusercontent.com/u/508384?v=3","gravatar_id":"","url":"https://api.github.com/users/keean","html_url":"https://github.com/keean","followers_url":"https://api.github.com/users/keean/followers","following_url":"https://api.github.com/users/keean/following{/other_user}","gists_url":"https://api.github.com/users/keean/gists{/gist_id}","starred_url":"https://api.github.com/users/keean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keean/subscriptions","organizations_url":"https://api.github.com/users/keean/orgs","repos_url":"https://api.github.com/users/keean/repos","events_url":"https://api.github.com/users/keean/events{/privacy}","received_events_url":"https://api.github.com/users/keean/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T16:21:46Z","updated_at":"2016-09-21T16:21:46Z","body":"I have updated the parser for single line function definitions (block syntax is not done yet). Given the following source code (note the function is given a name to help debugging if it is used as a callback etc):\r\n```\r\nid = id(x) => x\r\n```\r\nThe parser generates the following AST for this:\r\n```\r\n'blk' : [{'ass' : 'id', 'exp' : {'fn' : 'id', 'args' : ['x'], 'body' : {'blk' : [{'var' : 'x'}]}}}]\r\n```\r\nand feeding that into the code generator results in:\r\n```\r\nid=function id(x){x;};\r\n```\r\n"}}
{"actor":{"display_login":"keean"}}