Created
March 15, 2020 22:03
-
-
Save thunderInfy/dbe065c18f10ea9798a3650a72f8f13e 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> | |
| #include "bisoncode.tab.h" | |
| %} | |
| STRING ([a-zA-Z])+ | |
| NUMBER [0-9]+ | |
| %% | |
| {STRING} {sscanf(yytext, "%s", yylval.name); return STRING;} | |
| {NUMBER} {return NUMBER;} | |
| ";" {return (SEMICOLON);} | |
| . {return OTHER;} | |
| %% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment