Commit f976bd8f authored by dcw's avatar dcw
Browse files

converted to new TYPE {} syntax,

changed idtree type (leaf now has string and intlist..)
parent 5ff65a92
TYPE {
n = a | b | c | d | e;
o = a( int aa );
p = a | b;
......@@ -7,5 +9,6 @@ s = a(int aa) | b | c | d | e;
intlist = null "null" | cons( int first, intlist next ) 1 " , " 2;
illist = null "null" | cons( intlist first, illist next ) "[ " 1 " ] , " 2;
idtree = leaf( string id ) "leaf '" 1 "'"
idtree = leaf( string id, intlist l ) "leaf( '" 1 "', " 2 ")"
| node( idtree left, idtree right ) "( " 1 " , " 2 " )";
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment