{"action":"closed","issue":{"url":"https://api.github.com/repos/kozily/admin/issues/42","repository_url":"https://api.github.com/repos/kozily/admin","labels_url":"https://api.github.com/repos/kozily/admin/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/kozily/admin/issues/42/comments","events_url":"https://api.github.com/repos/kozily/admin/issues/42/events","html_url":"https://github.com/kozily/admin/issues/42","id":178035098,"number":42,"title":"Pattern matching statement kernel implementation","user":{"login":"smpiano","id":432563,"avatar_url":"https://avatars3.githubusercontent.com/u/432563?v=4","gravatar_id":"","url":"https://api.github.com/users/smpiano","html_url":"https://github.com/smpiano","followers_url":"https://api.github.com/users/smpiano/followers","following_url":"https://api.github.com/users/smpiano/following{/other_user}","gists_url":"https://api.github.com/users/smpiano/gists{/gist_id}","starred_url":"https://api.github.com/users/smpiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smpiano/subscriptions","organizations_url":"https://api.github.com/users/smpiano/orgs","repos_url":"https://api.github.com/users/smpiano/repos","events_url":"https://api.github.com/users/smpiano/events{/privacy}","received_events_url":"https://api.github.com/users/smpiano/received_events","type":"User","site_admin":false},"labels":[{"id":694338392,"url":"https://api.github.com/repos/kozily/admin/labels/review","name":"review","color":"e6e6e6","default":false}],"state":"closed","locked":false,"assignee":{"login":"smpiano","id":432563,"avatar_url":"https://avatars3.githubusercontent.com/u/432563?v=4","gravatar_id":"","url":"https://api.github.com/users/smpiano","html_url":"https://github.com/smpiano","followers_url":"https://api.github.com/users/smpiano/followers","following_url":"https://api.github.com/users/smpiano/following{/other_user}","gists_url":"https://api.github.com/users/smpiano/gists{/gist_id}","starred_url":"https://api.github.com/users/smpiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smpiano/subscriptions","organizations_url":"https://api.github.com/users/smpiano/orgs","repos_url":"https://api.github.com/users/smpiano/repos","events_url":"https://api.github.com/users/smpiano/events{/privacy}","received_events_url":"https://api.github.com/users/smpiano/received_events","type":"User","site_admin":false},"assignees":[{"login":"smpiano","id":432563,"avatar_url":"https://avatars3.githubusercontent.com/u/432563?v=4","gravatar_id":"","url":"https://api.github.com/users/smpiano","html_url":"https://github.com/smpiano","followers_url":"https://api.github.com/users/smpiano/followers","following_url":"https://api.github.com/users/smpiano/following{/other_user}","gists_url":"https://api.github.com/users/smpiano/gists{/gist_id}","starred_url":"https://api.github.com/users/smpiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smpiano/subscriptions","organizations_url":"https://api.github.com/users/smpiano/orgs","repos_url":"https://api.github.com/users/smpiano/repos","events_url":"https://api.github.com/users/smpiano/events{/privacy}","received_events_url":"https://api.github.com/users/smpiano/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/kozily/admin/milestones/3","html_url":"https://github.com/kozily/admin/milestone/3","labels_url":"https://api.github.com/repos/kozily/admin/milestones/3/labels","id":1967015,"number":3,"title":"Milestone 2","description":"Declarative model, Syntax highlighting, Execution visualization","creator":{"login":"andres-arana","id":1887812,"avatar_url":"https://avatars0.githubusercontent.com/u/1887812?v=4","gravatar_id":"","url":"https://api.github.com/users/andres-arana","html_url":"https://github.com/andres-arana","followers_url":"https://api.github.com/users/andres-arana/followers","following_url":"https://api.github.com/users/andres-arana/following{/other_user}","gists_url":"https://api.github.com/users/andres-arana/gists{/gist_id}","starred_url":"https://api.github.com/users/andres-arana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andres-arana/subscriptions","organizations_url":"https://api.github.com/users/andres-arana/orgs","repos_url":"https://api.github.com/users/andres-arana/repos","events_url":"https://api.github.com/users/andres-arana/events{/privacy}","received_events_url":"https://api.github.com/users/andres-arana/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":29,"state":"open","created_at":"2016-08-27T07:32:14Z","updated_at":"2018-03-16T03:05:20Z","due_on":"2018-03-03T08:00:00Z","closed_at":null},"comments":0,"created_at":"2016-09-20T11:32:43Z","updated_at":"2018-03-16T03:05:20Z","closed_at":"2018-03-16T03:05:20Z","author_association":"CONTRIBUTOR","body":"## Description\r\n\r\nImplement the kernel syntax for pattern matching statements. This includes the parsing of pattern matching statements (only in kernel syntax), and their execution.\r\n\r\nThe kernel syntax for the pattern matching statement is as follows:\r\n\r\n```\r\ncase <Variable> of <label>(<feature1>:<Var1> ... <featureN>:<VarN>) then <statement1> else <statement2> end\r\n```\r\n\r\n## Examples\r\n\r\nThe application should parse and execute the following example correctly:\r\n\r\n### Example 1\r\n\r\n```\r\nlocal X in local Y in local Z in local \r\n  Y = 30\r\n  X = person(age:Y)\r\n  case X of person(age=Age) then\r\n     Z = Age\r\n  else\r\n    skip\r\n  end\r\nend end end\r\n```\r\n\r\n## Tasks\r\n\r\n* [x] Implement the parser for the statement\r\n* [x] Implement the statement execution"}}
{"actor":{"display_login":"smpiano"}}