Add `%{'' and `%}'' to one of the examples so that you can actually

cut-n-paste the example and have it actually lex and compile.
This commit is contained in:
David E. O'Brien 1997-04-11 10:33:12 +00:00
parent 1dcb890ad9
commit 849e394f6b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24806

View File

@ -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;