From cf5a5fb3e38a10532f44c7ea36b46e3c59d5314c Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 19 Nov 2010 10:23:34 -0800 Subject: remove parser debug output and move existence check. --- src/cparse/cparse.ypp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/cparse') diff --git a/src/cparse/cparse.ypp b/src/cparse/cparse.ypp index ed37932..80d1120 100644 --- a/src/cparse/cparse.ypp +++ b/src/cparse/cparse.ypp @@ -41,29 +41,6 @@ static vector cur_path; static vector pcomps; static vector pcomp_is_value; -static void -print_path() -{ - printf("[%p,%p] p[", cur_parent, cur_node); - for (size_t i = 0; i < pcomps.size(); i++) { - if (i > 0) { - printf(","); - } - printf("%s", pcomps[i].c_str()); - } - printf("] n[%s]", nname); - if (nval) { - printf(" v[%s]", nval); - } - if (ncomment) { - printf(" c[%s]", ncomment); - } - if (ndeact) { - printf(" D"); - } - printf("\n"); -} - static void add_node() { @@ -166,11 +143,9 @@ forest: /* empty */ tree: node { add_node(); - print_path(); } | node { add_node(); - print_path(); } LEFTB { go_down(); } forest RIGHTB { -- cgit v1.2.3