{"action":"created","issue":{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/102","repository_url":"https://api.github.com/repos/SINTEF-9012/ThingML","labels_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/102/comments","events_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/102/events","html_url":"https://github.com/SINTEF-9012/ThingML/issues/102","id":119062086,"number":102,"title":"Empty Internal transition","user":{"login":"Lyadis","id":10744853,"avatar_url":"https://avatars.githubusercontent.com/u/10744853?v=3","gravatar_id":"","url":"https://api.github.com/users/Lyadis","html_url":"https://github.com/Lyadis","followers_url":"https://api.github.com/users/Lyadis/followers","following_url":"https://api.github.com/users/Lyadis/following{/other_user}","gists_url":"https://api.github.com/users/Lyadis/gists{/gist_id}","starred_url":"https://api.github.com/users/Lyadis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lyadis/subscriptions","organizations_url":"https://api.github.com/users/Lyadis/orgs","repos_url":"https://api.github.com/users/Lyadis/repos","events_url":"https://api.github.com/users/Lyadis/events{/privacy}","received_events_url":"https://api.github.com/users/Lyadis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/labels/JavaScript","name":"JavaScript","color":"f7c6c7"},{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/labels/ThingML%20Language","name":"ThingML Language","color":"02e10c"}],"state":"open","locked":false,"assignee":{"login":"brice-morin","id":576169,"avatar_url":"https://avatars.githubusercontent.com/u/576169?v=3","gravatar_id":"","url":"https://api.github.com/users/brice-morin","html_url":"https://github.com/brice-morin","followers_url":"https://api.github.com/users/brice-morin/followers","following_url":"https://api.github.com/users/brice-morin/following{/other_user}","gists_url":"https://api.github.com/users/brice-morin/gists{/gist_id}","starred_url":"https://api.github.com/users/brice-morin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brice-morin/subscriptions","organizations_url":"https://api.github.com/users/brice-morin/orgs","repos_url":"https://api.github.com/users/brice-morin/repos","events_url":"https://api.github.com/users/brice-morin/events{/privacy}","received_events_url":"https://api.github.com/users/brice-morin/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-26T15:14:03Z","updated_at":"2016-04-28T12:18:58Z","closed_at":null,"body":"Is this code allowed in ThingML?\r\n\r\n```\r\nthing TestEmptyInternalTransition\r\n{\r\n\tstatechart TestEmptyInternalTransition init S1 {\r\n\t\tproperty i : UInt16 = '0'\r\n\t\r\n\t\tstate S1 {\r\n\t\t\ton entry print \"Start\\n\"\r\n\t\t\tinternal\r\n\t\t\tguard i == 0\r\n\t\t\taction do\r\n\t\t\t\tprint \"Internal Empty transition\\n\"\r\n\t\t\t\ti = i + '1'\r\n\t\t\tend\r\n\t\t\t\r\n\t\t\ttransition -> S2 guard not(i == 0)\r\n\t\t}\r\n\r\n\r\n\t\tstate S2 {\r\n\t\t\ton entry print \"Done\\n\"\r\n\t\t}\r\n\t}\r\n}\r\n\r\ndatatype UInt16\t\r\n\t@c_type \"uint16_t\"\r\n\t@c_byte_size \"2\"\r\n\t@java_type \"int\"\r\n\t@java_primitive \"true\";\r\n\r\nconfiguration TestEmptyInternalTransitionCfg {\r\n\tinstance  t:  TestEmptyInternalTransition\r\n}\r\n```\r\nBecause it works with the C compiler (State S2 is reached) \r\nbut it doesn't with JS compiler (State S2 is never reached)\r\nnor with the java compiler (Error at compilation of generated sources)."},"comment":{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/comments/215406455","html_url":"https://github.com/SINTEF-9012/ThingML/issues/102#issuecomment-215406455","issue_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/102","id":215406455,"user":{"login":"brice-morin","id":576169,"avatar_url":"https://avatars.githubusercontent.com/u/576169?v=3","gravatar_id":"","url":"https://api.github.com/users/brice-morin","html_url":"https://github.com/brice-morin","followers_url":"https://api.github.com/users/brice-morin/followers","following_url":"https://api.github.com/users/brice-morin/following{/other_user}","gists_url":"https://api.github.com/users/brice-morin/gists{/gist_id}","starred_url":"https://api.github.com/users/brice-morin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brice-morin/subscriptions","organizations_url":"https://api.github.com/users/brice-morin/orgs","repos_url":"https://api.github.com/users/brice-morin/repos","events_url":"https://api.github.com/users/brice-morin/events{/privacy}","received_events_url":"https://api.github.com/users/brice-morin/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T12:18:58Z","updated_at":"2016-04-28T12:18:58Z","body":"Confirmed issue in state.js library, see steelbreeze/state.js#22\r\n"}}