yyy.in 276 Bytes
Newer Older
dcw's avatar
dcw committed
1
2
3
4
5
6
7
TYPE {

intlist = null "null" | cons( int first, intlist next ) 1 " , " 2;
illist  = null "n\nll" | cons( intlist first, illist next ) "[ " 1 " ] , " 2;
idtree  = leaf( string id, intlist l ) "leaf( '" 1 "', " 2 ")"
	| node( idtree left, idtree right ) "( " 1 " , " 2 " )";
}