Skip to content

Instantly share code, notes, and snippets.

@takeisa
Created August 25, 2014 06:06
Show Gist options
  • Save takeisa/a17916fc37c3fb532283 to your computer and use it in GitHub Desktop.
Save takeisa/a17916fc37c3fb532283 to your computer and use it in GitHub Desktop.
parser.mly
%token VAL1 EOF
%start <int option> prog
%%
prog:
| VAL1 { Some 1}
| EOF { None }
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment