]> granicus.if.org Git - re2c/commitdiff
- Update docu
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 15 Apr 2006 11:58:34 +0000 (11:58 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 15 Apr 2006 11:58:34 +0000 (11:58 +0000)
htdocs/manual.html
re2c.1.in

index 8f44ec7b3cd0e0fbb39a18f6017d9378b79a815e..6a3bb54b3206d70baddc783ef8beaae2d3df6e7f 100755 (executable)
@@ -144,7 +144,7 @@ the last character in the buffer). The generated code repeatedly compares
 YYCURSOR to YYLIMIT to determine when the buffer needs (re)filling.<br /><br /></dd>
 <dt>YYMARKER</dt>
 <dd><i>l</i>-expression of type *YYCTYPE. The generated code saves backtracking
-information in YYMARKER.<br /><br /></dd>
+information in YYMARKER. Some easy scanners might not use this.<br /><br /></dd>
 <dt>YYCTXMARKER</dt>
 <dd><i>l</i>-expression of type *YYCTYPE. The generated code saves context 
 backtracking information in YYCTXMARKER. The user only  needs to define this 
@@ -155,7 +155,9 @@ regular expressions.<br /><br /></dd>
 least <i>n</i> additional characters should be provided. YYFILL should adjust
 YYCURSOR, YYLIMIT, YYMARKER and YYCTXMARKER as needed. Note that for typical 
 programming languages <i>n</i> will be the length of the longest keyword plus 
-one.<br /><br /></dd>
+one. The user can place a comment of the form /*!max:re2c */ after the 
+end of the last scanner block to insert a YYMAXFILL definition that is 
+set to the maximum length value.<br /><br /></dd>
 <dt>YYGETSTATE()</dt>
 <dd>The user only needs to define this macro if the <b>-f</b> flag was
 specified. In that case, the generated code "calls" YYGETSTATE at the very
index 33e383a647225c759c315671179cd7bb23f68c0e..cc8d0ba04fd8194879093c95ca9a4435ae9a428a 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.48  2006/04/15 11:58:34  helly
+\"- Update docu
+\"
 \"Revision 1.47  2006/04/15 11:50:21  helly
 \"- Update docu
 \"
@@ -324,7 +327,8 @@ to determine when the buffer needs (re)filling.
 .TP
 \fCYYMARKER\fP
 \*(lx of type \fC*YYCTYPE\fP.
-The generated code saves backtracking information in \fCYYMARKER\fP.
+The generated code saves backtracking information in \fCYYMARKER\fP. Some easy
+scanners might not use this.
 .TP
 \fCYYCTXMARKER\fP
 \*(lx of type \fC*YYCTYPE\fP.
@@ -338,6 +342,9 @@ The generated code "calls" \fCYYFILL\fP when the buffer needs
 be provided.  \fCYYFILL\fP should adjust \fCYYCURSOR\fP, \fCYYLIMIT\fP,
 \fCYYMARKER\fP and \fCYYCTXMARKER\fP as needed.  Note that for typical 
 programming languages \fIn\fP will be the length of the longest keyword plus one.
+The user can place a comment of the form \fC/*!max:re2c */\fP after the end of
+the last scanner block to insert a \fCYYMAXFILL\fP definition that is set to 
+the maximum length value.
 .TP
 \fCYYGETSTATE()\fP
 The user only needs to define this macro if the \fB-f\fP flag was specified.