You might wan't to be more precise in the future. You could for example give some sample output and a link to where you found the above.
If I understand your problem correct, then the last line below is your problem? (code snippet
- datatype tree = leaf | node of int * tree * tree;
datatype tree = leaf | node of int * tree * tree
- val t = node (1, node (2, node (3, leaf, leaf), leaf), leaf);
val t = node (1,node (2,node #,leaf),leaf) : tree
Then the Control.Print structure is what you are looking for. So just drop the Compiler
part and use
Control.Print.printDepth := 100;
Do note that this is SML/NJ specific and not ml-yacc as such.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…