You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticbooleanidentifier_ref(PsiBuilderb, intlevel) {
IElementTypetype = b.getTokenType();
if (CueTokenTypes.IDENTIFIERS.contains(type)) {
b.advanceLexer();
returntrue;
}
// null is a NULL_LIT, true and false are BOOL_LIT, all others are KEYWORD, so we can just remap KEYWORDif (type == CueTypes.KEYWORD) {
b.remapCurrentToken(CueTypes.IDENTIFIER);
b.advanceLexer();
returntrue;
}
returnfalse;
}
It is used for transforming KEYWORD to IDENTIFIER in an OperandName.
I want to replace the <<identifier_ref>> by comb_identifier, so I can resolve the reference of comb_identifier in an OperandName. But if I do so, KEYWORD cannot be remapped as IDENTIFIER. What can I do to achieve my purpose?
The text was updated successfully, but these errors were encountered:
In my .bnf file, I define some rules as follow:
The code of external rule <<identifier_ref>> is
It is used for transforming KEYWORD to IDENTIFIER in an OperandName.
I want to replace the <<identifier_ref>> by comb_identifier, so I can resolve the reference of comb_identifier in an OperandName. But if I do so, KEYWORD cannot be remapped as IDENTIFIER. What can I do to achieve my purpose?
The text was updated successfully, but these errors were encountered: