summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-04-11 10:33:12 +0000
committerobrien <obrien@FreeBSD.org>1997-04-11 10:33:12 +0000
commitdaec40af7df6129f0a9c65a95610dd25cab9d8e1 (patch)
tree86cb27b06e5726a5eb83c974ddff96be9ebfdc64 /usr.bin/lex
parent973ef0724f5c8afbc2be1e47734bac1dc1ec8168 (diff)
downloadFreeBSD-src-daec40af7df6129f0a9c65a95610dd25cab9d8e1.zip
FreeBSD-src-daec40af7df6129f0a9c65a95610dd25cab9d8e1.tar.gz
Add ``%{'' and ``%}'' to one of the examples so that you can actually
cut-n-paste the example and have it actually lex and compile.
Diffstat (limited to 'usr.bin/lex')
-rw-r--r--usr.bin/lex/lex.12
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/lex/lex.1 b/usr.bin/lex/lex.1
index 065aee2..16025e9 100644
--- a/usr.bin/lex/lex.1
+++ b/usr.bin/lex/lex.1
@@ -136,7 +136,9 @@ The "%%" marks the beginning of the rules.
Here's another simple example:
.nf
+ %{
int num_lines = 0, num_chars = 0;
+ %}
%%
\\n ++num_lines; ++num_chars;
OpenPOWER on IntegriCloud