{"action":"created","issue":{"url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/issues/73","labels_url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/issues/73/comments","events_url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/issues/73/events","html_url":"https://github.com/TypeCobolTeam/TypeCobol/issues/73","id":102745893,"number":73,"title":"Empty source files","user":{"login":"wiztigers","id":13147832,"avatar_url":"https://avatars.githubusercontent.com/u/13147832?v=3","gravatar_id":"","url":"https://api.github.com/users/wiztigers","html_url":"https://github.com/wiztigers","followers_url":"https://api.github.com/users/wiztigers/followers","following_url":"https://api.github.com/users/wiztigers/following{/other_user}","gists_url":"https://api.github.com/users/wiztigers/gists{/gist_id}","starred_url":"https://api.github.com/users/wiztigers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiztigers/subscriptions","organizations_url":"https://api.github.com/users/wiztigers/orgs","repos_url":"https://api.github.com/users/wiztigers/repos","events_url":"https://api.github.com/users/wiztigers/events{/privacy}","received_events_url":"https://api.github.com/users/wiztigers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/labels/Cobol","name":"Cobol","color":"666666"},{"url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/labels/To%20Analyze","name":"To Analyze","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/milestones/1","html_url":"https://github.com/TypeCobolTeam/TypeCobol/milestones/alpha","labels_url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/milestones/1/labels","id":1211417,"number":1,"title":"alpha","description":"alpha version of TypeCobol editor (Eclipse?) ","creator":{"login":"wiztigers","id":13147832,"avatar_url":"https://avatars.githubusercontent.com/u/13147832?v=3","gravatar_id":"","url":"https://api.github.com/users/wiztigers","html_url":"https://github.com/wiztigers","followers_url":"https://api.github.com/users/wiztigers/followers","following_url":"https://api.github.com/users/wiztigers/following{/other_user}","gists_url":"https://api.github.com/users/wiztigers/gists{/gist_id}","starred_url":"https://api.github.com/users/wiztigers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiztigers/subscriptions","organizations_url":"https://api.github.com/users/wiztigers/orgs","repos_url":"https://api.github.com/users/wiztigers/repos","events_url":"https://api.github.com/users/wiztigers/events{/privacy}","received_events_url":"https://api.github.com/users/wiztigers/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":10,"state":"open","created_at":"2015-07-16T15:27:20Z","updated_at":"2015-08-24T09:14:53Z","due_on":"2015-10-08T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-08-24T09:14:53Z","updated_at":"2015-08-24T09:22:17Z","closed_at":null,"body":"Currently, our parser cannot take completely empty source files as an input: it breaks with the following error:\r\n`[1,0]<28,Error,Syntax>Syntax error : no viable alternative at input '<EOF>' (RuleStack=codeElement, OffendingSymbol=[1,0:]<EndOfFile> on line 0)`\r\n\r\nHowever, our syntax explicitely says a file can be empty:\r\n```cobol\r\ncobolCodeElements:\r\n    codeElement* EOF;\r\n```\r\nSo, what's the matter?\r\n\r\nTake a look at 05e6898965f479e539219fc3b9241240ee1aea04: OPEN sample and result file are empty, but the test fails."},"comment":{"url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/issues/comments/134107456","html_url":"https://github.com/TypeCobolTeam/TypeCobol/issues/73#issuecomment-134107456","issue_url":"https://api.github.com/repos/TypeCobolTeam/TypeCobol/issues/73","id":134107456,"user":{"login":"wiztigers","id":13147832,"avatar_url":"https://avatars.githubusercontent.com/u/13147832?v=3","gravatar_id":"","url":"https://api.github.com/users/wiztigers","html_url":"https://github.com/wiztigers","followers_url":"https://api.github.com/users/wiztigers/followers","following_url":"https://api.github.com/users/wiztigers/following{/other_user}","gists_url":"https://api.github.com/users/wiztigers/gists{/gist_id}","starred_url":"https://api.github.com/users/wiztigers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiztigers/subscriptions","organizations_url":"https://api.github.com/users/wiztigers/orgs","repos_url":"https://api.github.com/users/wiztigers/repos","events_url":"https://api.github.com/users/wiztigers/events{/privacy}","received_events_url":"https://api.github.com/users/wiztigers/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T09:22:17Z","updated_at":"2015-08-24T09:22:17Z","body":"rewriting the starting rule as:\r\n```cobol\r\ncobolCodeElements:\r\n    EOF | (codeElement* EOF);\r\n```\r\nhas no effect. Neither has adding an empty line in sample file ... *(scratches head)*"}}