{"action":"created","issue":{"url":"https://api.github.com/repos/felixangell/alloy/issues/241","labels_url":"https://api.github.com/repos/felixangell/alloy/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/felixangell/alloy/issues/241/comments","events_url":"https://api.github.com/repos/felixangell/alloy/issues/241/events","html_url":"https://github.com/felixangell/alloy/issues/241","id":75158624,"number":241,"title":"Crash in for loop","user":{"login":"MovingtoMars","id":596124,"avatar_url":"https://avatars.githubusercontent.com/u/596124?v=3","gravatar_id":"","url":"https://api.github.com/users/MovingtoMars","html_url":"https://github.com/MovingtoMars","followers_url":"https://api.github.com/users/MovingtoMars/followers","following_url":"https://api.github.com/users/MovingtoMars/following{/other_user}","gists_url":"https://api.github.com/users/MovingtoMars/gists{/gist_id}","starred_url":"https://api.github.com/users/MovingtoMars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovingtoMars/subscriptions","organizations_url":"https://api.github.com/users/MovingtoMars/orgs","repos_url":"https://api.github.com/users/MovingtoMars/repos","events_url":"https://api.github.com/users/MovingtoMars/events{/privacy}","received_events_url":"https://api.github.com/users/MovingtoMars/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/felixangell/alloy/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-11T09:49:02Z","updated_at":"2015-05-12T06:00:04Z","closed_at":"2015-05-11T22:00:14Z","body":"If you have anything after the comma in a `for` loop declaration, alloyc has a segmentation fault.\r\n\r\neg, this crashes::\r\n```\r\nmut x: int = 0;\r\nfor x < 5, x = x + 1 {}\r\n```\r\n\r\nThis works fine:\r\n```\r\nmut x: int = 0;\r\nfor x < 5 { x = x + 1; }\r\n```"},"comment":{"url":"https://api.github.com/repos/felixangell/alloy/issues/comments/101143260","html_url":"https://github.com/felixangell/alloy/issues/241#issuecomment-101143260","issue_url":"https://api.github.com/repos/felixangell/alloy/issues/241","id":101143260,"user":{"login":"MovingtoMars","id":596124,"avatar_url":"https://avatars.githubusercontent.com/u/596124?v=3","gravatar_id":"","url":"https://api.github.com/users/MovingtoMars","html_url":"https://github.com/MovingtoMars","followers_url":"https://api.github.com/users/MovingtoMars/followers","following_url":"https://api.github.com/users/MovingtoMars/following{/other_user}","gists_url":"https://api.github.com/users/MovingtoMars/gists{/gist_id}","starred_url":"https://api.github.com/users/MovingtoMars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovingtoMars/subscriptions","organizations_url":"https://api.github.com/users/MovingtoMars/orgs","repos_url":"https://api.github.com/users/MovingtoMars/repos","events_url":"https://api.github.com/users/MovingtoMars/events{/privacy}","received_events_url":"https://api.github.com/users/MovingtoMars/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T06:00:04Z","updated_at":"2015-05-12T06:00:04Z","body":"OK, I'll actually leave the character-lexing code how it is, and actually do error-checking and the likes in the parses. Seems much nicer that way."}}