Skip to content

Commit 51c6006

Browse files
committed
Added YYDEBUG to use with RE2C_FLAGS="--debug-output"
1 parent 3145e77 commit 51c6006

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

parser/scanner.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,12 @@
167167
#define XX_T_ASSIGN_BITWISE_SHIFTLEFT 457
168168
#define XX_T_ASSIGN_BITWISE_SHIFTRIGHT 458
169169

170+
#ifdef YYDEBUG
171+
#undef YYDEBUG
172+
#endif
173+
174+
#define YYDEBUG(s, c) do { \
175+
printf("State: %d char: %c\n", s, c); \
176+
} while (0)
177+
170178
#endif

0 commit comments

Comments
 (0)