mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 23:57:54 +01:00
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:
parent
1dcb890ad9
commit
849e394f6b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24806
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user