{"action":"created","issue":{"url":"https://api.github.com/repos/rpgleparser/rpgleparser/issues/51","repository_url":"https://api.github.com/repos/rpgleparser/rpgleparser","labels_url":"https://api.github.com/repos/rpgleparser/rpgleparser/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/rpgleparser/rpgleparser/issues/51/comments","events_url":"https://api.github.com/repos/rpgleparser/rpgleparser/issues/51/events","html_url":"https://github.com/rpgleparser/rpgleparser/issues/51","id":161071507,"number":51,"title":"/IF DEFINED directive inside of a SELECT statement not handled","user":{"login":"dhawkinstx","id":2083413,"avatar_url":"https://avatars.githubusercontent.com/u/2083413?v=3","gravatar_id":"","url":"https://api.github.com/users/dhawkinstx","html_url":"https://github.com/dhawkinstx","followers_url":"https://api.github.com/users/dhawkinstx/followers","following_url":"https://api.github.com/users/dhawkinstx/following{/other_user}","gists_url":"https://api.github.com/users/dhawkinstx/gists{/gist_id}","starred_url":"https://api.github.com/users/dhawkinstx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhawkinstx/subscriptions","organizations_url":"https://api.github.com/users/dhawkinstx/orgs","repos_url":"https://api.github.com/users/dhawkinstx/repos","events_url":"https://api.github.com/users/dhawkinstx/events{/privacy}","received_events_url":"https://api.github.com/users/dhawkinstx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-19T12:46:10Z","updated_at":"2016-06-19T13:08:13Z","closed_at":null,"body":"It doesn't appear that the parser is currently handling the case when an /IF DEFINED directive is placed within a SELECT.  Once again, I am new to ANTLR and this one isn't obvious to me how to fix properly.\r\nI've provided a sample file illustrating the problem.\r\n\r\n[IFSELECT.TXT](https://github.com/rpgleparser/rpgleparser/files/322297/IFSELECT.TXT)\r\n\r\nline 2:5 mismatched input ' /' expecting {CS_FIXED, OP_ENDSL, OP_OTHER, OP_WHEN}\r\nline 3:25 no viable alternative at input 'C                   WHEN'\r\n\r\nThanks,\r\n--David"},"comment":{"url":"https://api.github.com/repos/rpgleparser/rpgleparser/issues/comments/226996454","html_url":"https://github.com/rpgleparser/rpgleparser/issues/51#issuecomment-226996454","issue_url":"https://api.github.com/repos/rpgleparser/rpgleparser/issues/51","id":226996454,"user":{"login":"dhawkinstx","id":2083413,"avatar_url":"https://avatars.githubusercontent.com/u/2083413?v=3","gravatar_id":"","url":"https://api.github.com/users/dhawkinstx","html_url":"https://github.com/dhawkinstx","followers_url":"https://api.github.com/users/dhawkinstx/followers","following_url":"https://api.github.com/users/dhawkinstx/following{/other_user}","gists_url":"https://api.github.com/users/dhawkinstx/gists{/gist_id}","starred_url":"https://api.github.com/users/dhawkinstx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhawkinstx/subscriptions","organizations_url":"https://api.github.com/users/dhawkinstx/orgs","repos_url":"https://api.github.com/users/dhawkinstx/repos","events_url":"https://api.github.com/users/dhawkinstx/events{/privacy}","received_events_url":"https://api.github.com/users/dhawkinstx/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T13:08:13Z","updated_at":"2016-06-19T13:08:13Z","body":"Errr. Scratch that.  I now understand that I need to push everything through the PreprocessTokenSource before parsing.  It is what takes care of handling the defines.  It has no problem parsing the content once I use it.\r\n\r\nThanks\r\n--David"}}
{"actor":{"display_login":"dhawkinstx"}}