# HG changeset patch # User Mario de Sousa # Date 1352918262 0 # Node ID 151f0b57b4e4fbea7dcd70c5c6a31998f8ed07f6 # Parent 88595935a9527ee0fe1cb25bc338e5cc18d3c770 Print const values of symbol. diff -r 88595935a952 -r 151f0b57b4e4 absyntax_utils/debug_ast.cc --- a/absyntax_utils/debug_ast.cc Wed Nov 14 15:25:03 2012 +0000 +++ b/absyntax_utils/debug_ast.cc Wed Nov 14 18:37:42 2012 +0000 @@ -114,7 +114,11 @@ } else { fprintf(stderr, "(%d)\t\t\t\t\t", symbol->candidate_datatypes.size()); } - fprintf(stderr, "}\t"); + fprintf(stderr, "}\t"); + + /* print the const values... */ + fprintf(stderr, " constv{f=%f, i=%lld, u=%llu, b=%d}\t", symbol->const_value._real64.value, symbol->const_value._int64.value, symbol->const_value._uint64.value, symbol->const_value._bool.value); + }