From 907ad9bc3eb17b9e0fcd88c231d77f1b553cbb64 Mon Sep 17 00:00:00 2001 From: helly Date: Tue, 3 May 2005 15:46:46 +0000 Subject: [PATCH] - Add missing YYDEBUG() section --- re2c.1.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/re2c.1.in b/re2c.1.in index 6eb2f7b0..f02b2f52 100644 --- a/re2c.1.in +++ b/re2c.1.in @@ -7,6 +7,9 @@ .ds rx regular expression .ds lx \fIl\fP-expression \"$Log$ +\"Revision 1.20 2005/05/03 15:46:46 helly +\"- Add missing YYDEBUG() section +\" \"Revision 1.19 2005/04/25 20:28:08 helly \"- Speling \" @@ -246,6 +249,13 @@ Should the user wish to save the state of the scanner and have \fCYYFILL\fP retu to the caller, all he has to do is store that unique identifer in a variable. Later, when the scannered is called again, it will call \fCYYGETSTATE()\fP and resume execution right where it left off. +.TP +\fCYYDEBUG(\fP\fIstate\fP,\fIcurrent\fC)\fP +This is only needed if the \fB-d\fP flag was specified. It allows to easily debug +the generated parser by calling a user defined function for every state. The function +should have the following signature: \fIvoid YYDEBUG(int state, char current)\fP. +The first parameter receives the state or -1 and the second parameter receives the +input at the current cursor. .SH "SCANNER WITH STORABLE STATES" When the \fB-f\fP flag is specified, re2c generates a scanner that -- 2.40.0