From 560d439d62acab26a4029f59ebd2e16fc935f93c Mon Sep 17 00:00:00 2001 From: helly Date: Thu, 13 Mar 2008 17:34:11 +0000 Subject: [PATCH] - More docu --- re2c/htdocs/manual.html | 8 +++++++- re2c/re2c.1.in | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/re2c/htdocs/manual.html b/re2c/htdocs/manual.html index 6d1b921b..a376cfa4 100755 --- a/re2c/htdocs/manual.html +++ b/re2c/htdocs/manual.html @@ -127,7 +127,13 @@ tool with the re2c output which you might want if you do not require your users to have re2c themselves when building from your source. -o output Specify the output file.

-r
-
Allows reuse of scanner definitions with '/*!repeat:re2c' after '/*!re2c'. +
Allows reuse of scanner definitions with '/*!repeat:re2c' after +'/*!re2c'. In this mode only one '/*!re2c' block, the last, +can contain rules. Its rules are being saved and reused by every +'/*!repeat:re2c' block that follows. These blocks can contain +inplace configurations. That way it is possible to create the same scanner +multiple times for different character types, different input mechanisms or +different output mechanisms.

-s
Generate nested ifs for some switches. Many compilers need this assist to diff --git a/re2c/re2c.1.in b/re2c/re2c.1.in index 3e4931a4..4580c0dd 100644 --- a/re2c/re2c.1.in +++ b/re2c/re2c.1.in @@ -143,7 +143,13 @@ have \*(re themselves when building from your source. Specify the output file. .TP \fB-r\fP -Allows reuse of scanner definitions with '/*!repeat:re2c' after '/*!re2c'. +Allows reuse of scanner definitions with '\fB/*!repeat:re2c\fP' after +'\fB/*!re2c\fP'. In this mode only one '\fB/*!re2c\fP' block, the last, +can contain rules. Its rules are being saved and reused by every +'\fB/*!repeat:re2c\fP' block that follows. These blocks can contain +inplace configurations. That way it is possible to create the same scanner +multiple times for different character types, different input mechanisms or +different output mechanisms. .TP \fB-s\fP Generate nested \fCif\fPs for some \fCswitch\fPes. Many compilers need this -- 2.50.1