Created
November 29, 2017 01:33
-
-
Save saisumit/457139f46640adcf577a6aa9e2722c18 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| %{ | |
| #include <stdio.h> | |
| %} | |
| op "+"|"-"|"*"|"/" | |
| %% | |
| [a-z] { yylval=*yytext; return id; } | |
| {op} { return (int) yytext[0]; } | |
| \n { return(0); } | |
| . { return err; } | |
| %% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment