Created
May 7, 2014 19:27
-
-
Save kevinrobayna/1f14f8d9094e983e6c0a 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
%lex | |
%% | |
[\s\t\n\r] /** SKIP WHITESPACE */ | |
<<EOF>> return 'EOF' | |
a return 'T_A'; | |
b return 'T_B'; | |
/lex | |
%% | |
S_A | |
: { return false; } | |
| T_A S_B | |
| T_B S_C | |
; | |
S_B | |
: { return false; } | |
| T_B S_D | |
; | |
S_C | |
: { return false; } | |
| T_A S_D | |
; | |
S_D | |
: EOF { return true;} | |
; |
crguezl
commented
May 7, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment