]> granicus.if.org Git - re2c/commitdiff
- Add missing YYDEBUG() section
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 3 May 2005 15:46:46 +0000 (15:46 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Tue, 3 May 2005 15:46:46 +0000 (15:46 +0000)
re2c.1.in

index 6eb2f7b01fcbadf9c16560d42760de05aaa26332..f02b2f528bf01b9d9a73d14520fab65405dae40c 100644 (file)
--- 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