{"action":"opened","issue":{"url":"https://api.github.com/repos/antlr/antlr4/issues/834","labels_url":"https://api.github.com/repos/antlr/antlr4/issues/834/labels{/name}","comments_url":"https://api.github.com/repos/antlr/antlr4/issues/834/comments","events_url":"https://api.github.com/repos/antlr/antlr4/issues/834/events","html_url":"https://github.com/antlr/antlr4/issues/834","id":61330191,"number":834,"title":"Why does \"grun XML tokens -tokens ./src/t.xml\" work for XMLLexer.g4?","user":{"login":"RedTailedHawk","id":8505928,"avatar_url":"https://avatars.githubusercontent.com/u/8505928?v=3","gravatar_id":"","url":"https://api.github.com/users/RedTailedHawk","html_url":"https://github.com/RedTailedHawk","followers_url":"https://api.github.com/users/RedTailedHawk/followers","following_url":"https://api.github.com/users/RedTailedHawk/following{/other_user}","gists_url":"https://api.github.com/users/RedTailedHawk/gists{/gist_id}","starred_url":"https://api.github.com/users/RedTailedHawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedTailedHawk/subscriptions","organizations_url":"https://api.github.com/users/RedTailedHawk/orgs","repos_url":"https://api.github.com/users/RedTailedHawk/repos","events_url":"https://api.github.com/users/RedTailedHawk/events{/privacy}","received_events_url":"https://api.github.com/users/RedTailedHawk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-14T01:08:19Z","updated_at":"2015-03-14T01:08:19Z","closed_at":null,"body":"The grammar file is XML**Lexer**.g4, so why would the following example from the ANTLR book work?\r\n\r\n    grun XML tokens -tokens ./src/t.xml\r\n\r\nThis works (as expected):\r\n\r\n    grun XMLLexer tokens -tokens ./src/t.xml\r\n\r\nThis does not work (as expected):\r\n\r\n    grun XMLLex tokens -tokens ./src/t.xml\r\n"}}