[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/11] parse: Write out token names when dumping the parser's sta
From: |
Tim Hentenaar |
Subject: |
[PATCH 04/11] parse: Write out token names when dumping the parser's stack |
Date: |
Mon, 15 Jun 2015 21:52:55 +0200 |
---
src/parse.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/parse.c b/src/parse.c
index 3820cb6..bc661ba 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -528,9 +528,10 @@ extern exit_values_ty parse (
for (i = 1; i <= parser_state_tos->tos; ++i)
{
- printf (_(" stack[%d] => stack: %d ind_level: %d\n"),
- (int) i, (int) parser_state_tos->p_stack[i],
- (int) parser_state_tos->il[i]);
+ printf (_(" stack[%d] => stack: %d [%-10s] ind_level: %d\n"),
+ (int)i, (int)parser_state_tos->p_stack[i],
+ debug_symbol_strings[parser_state_tos->p_stack[i]],
+ (int)parser_state_tos->il[i]);
}
printf ("\n");
--
2.3.6
- [PATCH 00/11] Bugfixes and a few new options, Tim Hentenaar, 2015/06/15
- [PATCH 06/11] Automatically include 'size_t', 'wchar_t' and 'ptrdiff_t' as a rw_decl tokens, since they're guaranteed to be available in ANSI C., Tim Hentenaar, 2015/06/15
- [PATCH 04/11] parse: Write out token names when dumping the parser's stack,
Tim Hentenaar <=
- [PATCH 01/11] lexi.c: Fix conditionals around the GNU inline attribute, Tim Hentenaar, 2015/06/15
- [PATCH 02/11] Fix html doc generation, Tim Hentenaar, 2015/06/15
- [PATCH 03/11] Fix regression introduced in hg revision 25c27d429590, Tim Hentenaar, 2015/06/15
- [PATCH 09/11] Fix handling of block comments after braces, Tim Hentenaar, 2015/06/15
- [PATCH 07/11] Add an option to use spaces for aligment when using tabs, Tim Hentenaar, 2015/06/15
- [PATCH 08/11] Adjust -npcs so that if set, no space will be added between a function pointer's name and its argument list., Tim Hentenaar, 2015/06/15
- [PATCH 05/11] Add an option to allow single-line conditionals, Tim Hentenaar, 2015/06/15
- [PATCH 11/11] Fix formatting of struct initializer lists, and add -sar, Tim Hentenaar, 2015/06/15