summaryrefslogtreecommitdiff
path: root/src/repc.1
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2003-09-20 07:12:49 +0000
committerStef Walter <stef@thewalter.net>2003-09-20 07:12:49 +0000
commitb49d8ebefe9b10c53a6a09ad564e22111b7b25c6 (patch)
tree1d5dd4abc38170a7bc106dabbc59b915017222f0 /src/repc.1
parent1cda9ebbd62916c7c2136722597a86c583e1ecf6 (diff)
Initial Import
Diffstat (limited to 'src/repc.1')
-rw-r--r--src/repc.173
1 files changed, 73 insertions, 0 deletions
diff --git a/src/repc.1 b/src/repc.1
new file mode 100644
index 0000000..49045ae
--- /dev/null
+++ b/src/repc.1
@@ -0,0 +1,73 @@
+.Dd September, 2002
+.Dt REPC 1
+.Os Rep 2.3
+.Sh NAME
+.Nm repc
+.Nd compiler for the
+.Xr rep 1
+scripting language
+.Sh SYNOPSIS
+.Nm
+.Op Fl rp
+.Op Fl z Ar buffsize
+.Ar script
+.Ar outfile
+.Nm
+.Fl d
+.Ar script
+.Sh DESCRIPTION
+The
+.Nm
+command compiles
+.Xr rep 1
+scripts into an byte code format. This speeds up execution as compilation is not
+required at run time. Also useful when using the
+.Xr rlib 3
+library.
+.Pp
+.Ar script
+is compiled into
+.Ar output .
+The
+.Fl z
+and
+.Fl p
+options are stored with the compiled script, and will be used as defaults when the
+script is executed.
+.Sh OPTIONS
+The options are as follows:
+.Bl -tag -width Fl
+.It Fl d
+Dump dissassembled byte code.
+.It Fl p
+Default to parse mode. When the script is executed only replaments
+will be written out, rather than unreplaced text.
+.It Fl r
+Compile into raw byte code format. For use with the
+.Xr rlib 3
+library. Any options are not stored with the code.
+.Xr rep 3
+cannot read this format.
+.It Fl z
+Set the default buffer size to
+.Ar buffsize
+and store it along with the compiled script. See
+.Xr rep 1
+for a description of the buffer size.
+.Sh NOTE
+The
+.Nm
+command uses
+.Xr getopt 3
+to parse it's arguments, which allows it to accept
+the
+.Sq Li --
+option which will stop processing of flag options at that point. This allows
+the processing of files with names that begin with a dash
+.Pq Sq - .
+.Sh SEE ALSO
+.Xr rep 1 ,
+.Xr rlib 3 ,
+.Xr pcre 3
+.Sh AUTHOR
+.An Nate Nielsen Aq nielsen@memberwebs.com \ No newline at end of file