From: helly Date: Sun, 9 Apr 2006 00:17:30 +0000 (+0000) Subject: - Update docu X-Git-Tag: 0.13.6~415 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a206ccaee61c99ef101487a529e11d9cbbd9120e;p=re2c - Update docu --- diff --git a/htdocs/manual.html b/htdocs/manual.html index 1d4117eb..2cfe3e01 100755 --- a/htdocs/manual.html +++ b/htdocs/manual.html @@ -232,7 +232,8 @@ variable by YYSETSTATE(state).

the function calling it) if more input is needed.

4. Modify caller to recognise "more input is needed" and respond appropriately.

-

Please see examples/push.re for push-model scanner.

+

Please see examples/push.re for push-model scanner. The generated code can be +tweaked using configurations "state:abort" and "state:nextlabel".

SCANNER SPECIFICATIONS

Each scanner specification consists of a set of rules, name @@ -348,7 +349,10 @@ reset to 0 after a start label has been generated. contain a default case that aborts and a -1 case used for initialization.

re2c:state:nextlabel = 0 ;
Used when -f is active to control whether the YYGETSTATE block is -followed by a yyNext: label line.
+followed by a yyNext: label line. Instead of using yyNext you can +usually also use configuration startlabel to force a specific start label +or default to yy0 as start label. +

A LARGER EXAMPLE

diff --git a/re2c.1.in b/re2c.1.in index 6ed71175..e25da57a 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.44 2006/04/09 00:17:30 helly +\"- Update docu +\" \"Revision 1.43 2006/04/09 00:06:33 helly \"- Added configuration 'state:abort'. \"- Changed to not generate yyNext unless configuration 'state:nextlabel' is @@ -405,7 +408,8 @@ input is needed. 4. Modify caller to recognise "more input is needed" and respond appropriately. -Please see examples/push.re for push-model scanner. +Please see examples/push.re for push-model scanner. The generated code can be +tweaked using configurations "\fBstate:abort\fP" and "\fBstate:nextlabel\fP". .SH "SCANNER SPECIFICATIONS" Each scanner specification consists of a set of \fIrules\fP, \fIname @@ -553,7 +557,9 @@ contain a default case that aborts and a -1 case used for initialization. .TP \fIre2c:state:nextlabel\fP \fB=\fP 0 \fB;\fP Used when -f is active to control whether the \fCYYGETSTATE\fP block is -followed by a \fCyyNext:\fP label line. +followed by a \fCyyNext:\fP label line. Instead of using \fCyyNext\fP you can +usually also use configuration \fIstartlabel\fP to force a specific start label +or default to \fCyy0\fP as start label. .SH "A LARGER EXAMPLE" .LP