summaryrefslogtreecommitdiff
path: root/src/test/bw.mly
blob: 8b022bd5e02a8a54f35ab2276c9126fd9f30b3a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%token B
%token W
%token EOL

%start<unit> main

%% 

seq    :                {}
       | seq B          {}
       | seq W          {}
       ;

ending :                {}
       | W W W          {}
       ;

main   : seq ending EOL {}