{"action":"created","issue":{"url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/110","repository_url":"https://api.github.com/repos/JetBrains/Grammar-Kit","labels_url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/110/comments","events_url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/110/events","html_url":"https://github.com/JetBrains/Grammar-Kit/issues/110","id":155347997,"number":110,"title":"Non-generated tokens support (multiple sub-issues)","user":{"login":"calexHG","id":17525307,"avatar_url":"https://avatars.githubusercontent.com/u/17525307?v=3","gravatar_id":"","url":"https://api.github.com/users/calexHG","html_url":"https://github.com/calexHG","followers_url":"https://api.github.com/users/calexHG/followers","following_url":"https://api.github.com/users/calexHG/following{/other_user}","gists_url":"https://api.github.com/users/calexHG/gists{/gist_id}","starred_url":"https://api.github.com/users/calexHG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calexHG/subscriptions","organizations_url":"https://api.github.com/users/calexHG/orgs","repos_url":"https://api.github.com/users/calexHG/repos","events_url":"https://api.github.com/users/calexHG/events{/privacy}","received_events_url":"https://api.github.com/users/calexHG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-17T19:59:39Z","updated_at":"2016-05-17T22:17:58Z","closed_at":null,"body":"_[I've had this sitting, incomplete, in a browser tab, unsubmitted for a while now while dealing with other things.. better to just quickly list what has come up and get it out there, so it can hopefully be addressed.]_\r\n\r\nIs it correct that one can only reference tokens in their element-accessor query strings if they have GK's token generation enabled? GK reports an \"incorrect item\" error when mentioning tokens in that context  and that goes away when enabling it (which somewhat makes sense given the limitation mentioned later).\r\n\r\nI don't want GK's token generation[1]. But the problem that exists there is that  — n/m... point is: GK's parsing code works just fine with my separately defined tokens b/c I static import them in the `parserImports`. Why should they cause problems here?\r\n\r\n(Just as a reminder in case it becomes relevant, do note that, at the moment, the `parserImports` statements that currently allow the _parser_ to deal with user tokens, do not currently get used when generating _PSI_ class files)\r\n\r\n_[1] I originally disabled GK's token generation ages ago because it was mangling my token names (turning, say, GT_GT_EQUAL, into GTGTEQUAL) IIRC (or maybe it was something else), but that seems to be resolved now. In any case, I don't want GK's token generation anymore. I have my own system that uses its own IElementType class hierarchy, specially tweaked debugNames, token aliases, logical visual arrangement into clumps of related tokens, etc._"},"comment":{"url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/comments/219871194","html_url":"https://github.com/JetBrains/Grammar-Kit/issues/110#issuecomment-219871194","issue_url":"https://api.github.com/repos/JetBrains/Grammar-Kit/issues/110","id":219871194,"user":{"login":"calexHG","id":17525307,"avatar_url":"https://avatars.githubusercontent.com/u/17525307?v=3","gravatar_id":"","url":"https://api.github.com/users/calexHG","html_url":"https://github.com/calexHG","followers_url":"https://api.github.com/users/calexHG/followers","following_url":"https://api.github.com/users/calexHG/following{/other_user}","gists_url":"https://api.github.com/users/calexHG/gists{/gist_id}","starred_url":"https://api.github.com/users/calexHG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calexHG/subscriptions","organizations_url":"https://api.github.com/users/calexHG/orgs","repos_url":"https://api.github.com/users/calexHG/repos","events_url":"https://api.github.com/users/calexHG/events{/privacy}","received_events_url":"https://api.github.com/users/calexHG/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T22:17:58Z","updated_at":"2016-05-17T22:17:58Z","body":"Option 2:\r\n\r\nEnabling token accessors, the `incorrect item` error isn't generated, and the methods below get added, but the code is invalid because the token type constant is not imported.\r\n\r\n\t  @Override\r\n\t  @NotNull\r\n\t  public PsiElement getIdentifier() {\r\n\t    return findNotNullChildByType(IDENTIFIER); // <-- Error: Cannot resolve symbol 'IDENTIFIER'\r\n\t  }\r\n\r\n\t  @Override\r\n\t  @NotNull\r\n\t  public PsiElement getMyId() {\r\n\t    return getIdentifier();\r\n\t  }\r\n"}}