playlist.y 191 Bytes
Newer Older
O'Reilly Media, Inc. committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
%{
  #include <stdio.h>
%}

%token T_PLAYLIST T_TRACK T_STRING

%%

play_list:
	| T_PLAYLIST T_STRING '{' track_list '}'
	;

track_list:
	| track_list track
	;

track:	T_TRACK T_STRING
	;
%%