Created
March 22, 2017 08:50
-
-
Save Interfere/72e4c31681926753bfdf1d3f080e60b8 to your computer and use it in GitHub Desktop.
Exclamation and question marks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case '!': | |
if (isLeftBound(TokStart, BufferStart)) | |
return formToken(tok::exclaim_postfix, TokStart); | |
return lexOperatorIdentifier(); | |
case '?': | |
if (isLeftBound(TokStart, BufferStart)) | |
return formToken(tok::question_postfix, TokStart); | |
return lexOperatorIdentifier(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment