print letter as well as tile in text dumps (same as cpp version)

This commit is contained in:
ehouse 2006-04-13 03:06:18 +00:00
parent 3f4faae5b5
commit 36c6cd214b

View file

@ -252,9 +252,10 @@ sub printNode {
print STDERR "[$index] "; print STDERR "[$index] ";
my $letter = TrieNodeGetLetter($node);
printf( STDERR printf( STDERR
"letter=%d; isTerminal=%d; isLastSib=%d; fco=%d;\n", "letter=%d(%s); isTerminal=%d; isLastSib=%d; fco=%d;\n",
TrieNodeGetLetter($node), $letter, "" . $gRevMap[$letter],
TrieNodeGetIsTerminal($node), TrieNodeGetIsTerminal($node),
TrieNodeGetIsLastSibling($node), TrieNodeGetIsLastSibling($node),
TrieNodeGetFirstChildOffset($node)); TrieNodeGetFirstChildOffset($node));