]> granicus.if.org Git - re2c/commitdiff
- Update docu
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 31 Dec 2005 00:54:55 +0000 (00:54 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sat, 31 Dec 2005 00:54:55 +0000 (00:54 +0000)
re2c.1.in

index a8514e616d0a1ca38154edd453e1516148c75104..45e86c565b6f94fae3f9207df21e829f4e0ff349 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.32  2005/12/31 00:54:55  helly
+\"- Update docu
+\"
 \"Revision 1.31  2005/12/31 00:02:25  helly
 \"- Fix Synopsis
 \"
@@ -357,12 +360,28 @@ appropriately.
 Please see examples/push.re for push-model scanner.
 
 .SH "SCANNER SPECIFICATIONS"
-Each scanner specification consists of a set of \fIrules\fP and name
-definitions.
-Rules consist of a regular expression along with a block of C/C++ code that
-is to be executed when the associated regular expression is matched.
-Name definitions are of the form
-``\fIname\fP \fC=\fP \fIregular expression\fP\fC;\fP''.
+Each scanner specification consists of a set of \fIrules\fP, \fIname
+definitions\fP and \fIconfigurations\fP.
+.LP
+\fIRules\fP consist of a regular expression along with a block of C/C++ code that
+is to be executed when the associated \fIregular expression\fP is matched.
+.P
+.RS
+\fIregular expression\fP \fC{\fP \fIC/C++ code\fP \fC}\fP
+.RE
+.LP
+Name definitions are of the form:
+.P
+.RS
+\fIname\fP \fC=\fP \fIregular expression\fP\fC;\fP
+.RE
+.LP
+Configurations look like name definitions whose names start 
+with "\fBre2c:\fP":
+.P
+.RS
+\fCre2c:\fP\fIname\fP \fC=\fP \fIvalue\fP\fC;\fP
+.RE
 
 .SH "SUMMARY OF RE2C REGULAR EXPRESSIONS"
 .TP
@@ -444,6 +463,14 @@ The regular expressions listed above are grouped according to
 precedence, from highest precedence at the top to lowest at the bottom.
 Those grouped together have equal precedence.
 
+.SH "INPLACE CONFIGURATION"
+.LP
+It is possible to configure code generation inside re2c blocks. The following
+lists the available configurations (without "\fBre2c:\fP" prefix):
+.LP
+\fIindent\fP
+Specifies the minimum number of tabs to use for indendation.
+
 .SH "A LARGER EXAMPLE"
 .LP
 .in +3