{"action":"opened","issue":{"url":"https://api.github.com/repos/antlr/antlr4/issues/1033","labels_url":"https://api.github.com/repos/antlr/antlr4/issues/1033/labels{/name}","comments_url":"https://api.github.com/repos/antlr/antlr4/issues/1033/comments","events_url":"https://api.github.com/repos/antlr/antlr4/issues/1033/events","html_url":"https://github.com/antlr/antlr4/issues/1033","id":114582618,"number":1033,"title":"A declaration of a \"local\" has an extra semicolon, causes a syntax error","user":{"login":"arturrataj","id":15610623,"avatar_url":"https://avatars.githubusercontent.com/u/15610623?v=3","gravatar_id":"","url":"https://api.github.com/users/arturrataj","html_url":"https://github.com/arturrataj","followers_url":"https://api.github.com/users/arturrataj/followers","following_url":"https://api.github.com/users/arturrataj/following{/other_user}","gists_url":"https://api.github.com/users/arturrataj/gists{/gist_id}","starred_url":"https://api.github.com/users/arturrataj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arturrataj/subscriptions","organizations_url":"https://api.github.com/users/arturrataj/orgs","repos_url":"https://api.github.com/users/arturrataj/repos","events_url":"https://api.github.com/users/arturrataj/events{/privacy}","received_events_url":"https://api.github.com/users/arturrataj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-02T12:13:31Z","updated_at":"2015-11-02T12:13:31Z","closed_at":null,"body":"If a variable is declared within a block \"local\", e.g.\r\n\r\nlocals [\r\n    Label label;\r\n]\r\n\r\n it is sometimes translated to an incorrect field declaration of the form:\r\n\r\nLabel ; label;\r\n\r\nAs seen, it is Antlr which adds the extra semicolon for whatever reason. During the generation of such a parser, Antlr4 says nothing about possible problems with the grammar itself.\r\n\r\nI can not attach the grammar, whose parser has this issue (\"we don't support that file type\"), but the respective file is available here:\r\n\r\nhttps://groups.google.com/d/msg/antlr-discussion/E7qkD6wCKlE/i8fSrhclDAAJ\r\n"}}