Created
September 17, 2014 12:15
-
-
Save jbatch/e8a061c745fc999e26bd to your computer and use it in GitHub Desktop.
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
digit [0-9] | |
alpha [a-fA-F] | |
hextail ({digit}|{alpha}){1,8} | |
hex 0[xX]{hextail} | |
%% | |
{hex} printf("Found HEX number %s !", yytext); | |
. printf(""); | |
%% | |
main() | |
{ | |
printf("Give me your input:\n"); | |
yylex(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment