{"action":"opened","issue":{"url":"https://api.github.com/repos/antlr/antlr4/issues/883","labels_url":"https://api.github.com/repos/antlr/antlr4/issues/883/labels{/name}","comments_url":"https://api.github.com/repos/antlr/antlr4/issues/883/comments","events_url":"https://api.github.com/repos/antlr/antlr4/issues/883/events","html_url":"https://github.com/antlr/antlr4/issues/883","id":81904583,"number":883,"title":"Fixed position parsing - Lexing by character position in line.","user":{"login":"ryaneberly","id":5986747,"avatar_url":"https://avatars.githubusercontent.com/u/5986747?v=3","gravatar_id":"","url":"https://api.github.com/users/ryaneberly","html_url":"https://github.com/ryaneberly","followers_url":"https://api.github.com/users/ryaneberly/followers","following_url":"https://api.github.com/users/ryaneberly/following{/other_user}","gists_url":"https://api.github.com/users/ryaneberly/gists{/gist_id}","starred_url":"https://api.github.com/users/ryaneberly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryaneberly/subscriptions","organizations_url":"https://api.github.com/users/ryaneberly/orgs","repos_url":"https://api.github.com/users/ryaneberly/repos","events_url":"https://api.github.com/users/ryaneberly/events{/privacy}","received_events_url":"https://api.github.com/users/ryaneberly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-28T12:24:16Z","updated_at":"2015-05-28T12:24:16Z","closed_at":null,"body":"It would be useful to be able to express character position constraints in a pure ANTLR grammar (without predicate actions).\r\n\r\nExample:\r\nI have lexical rules such as:\r\nPS_BEGIN: {getCharPositionInLine()==23}? [bB];\r\n\r\nThanks for considering it.  I understand it may be a specialized case, and should stay implemented as it.  Just thought I'd suggest it\r\n\r\n"}}