version 1.7, 1999/07/09 13:35:30 |
version 1.8, 2000/03/14 14:58:25 |
|
|
.Ed |
.Ed |
.Pp |
.Pp |
Note that the first field is just the language name (and any variants |
Note that the first field is just the language name (and any variants |
of it). Thus the C language could be specified to |
of it). |
|
Thus the C language could be specified to |
.Xr vgrind 1 |
.Xr vgrind 1 |
as "c" or "C". |
as |
|
.Qq c |
|
or |
|
.Qq C . |
.Pp |
.Pp |
Entries may continue onto multiple lines by giving a \e as the last |
Entries may continue onto multiple lines by giving a \e as the last |
character of a line. |
character of a line. |
|
|
and string |
and string |
capabilities which give a regular expression or |
capabilities which give a regular expression or |
keyword list. |
keyword list. |
.Sh REGULAR EXPRESSIONS |
.Sh REGULAR EXPRESSIONS |
.Nm vgrindefs |
.Nm vgrindefs |
uses regular expression which are very similar to those of |
uses regular expression which are very similar to those of |
.Xr ex 1 |
.Xr ex 1 |
and |
and |
.Xr lex 1 . |
.Xr lex 1 . |
The characters `^', `$', `:' and `\e' |
The characters |
|
.Ql ^ , |
|
.Ql $ , |
|
.Ql \&: , |
|
and |
|
.Ql \e |
are reserved characters and must be |
are reserved characters and must be |
"quoted" with a preceding |
.Dq quoted |
|
with a preceding |
.Ql \e |
.Ql \e |
if they |
if they |
are to be included as normal characters. |
are to be included as normal characters. |
|
|
.It \ea |
.It \ea |
Matches any string of symbols (like .* in lex). |
Matches any string of symbols (like .* in lex). |
.It \ep |
.It \ep |
Matches any alphanumeric name. In a procedure definition (pb) the string |
Matches any alphanumeric name. |
|
In a procedure definition (pb) the string |
that matches this symbol is used as the procedure name. |
that matches this symbol is used as the procedure name. |
.It () |
.It () |
Grouping. |
Grouping. |
|
|
string delimiter in a string by escaping it. |
string delimiter in a string by escaping it. |
.El |
.El |
.Pp |
.Pp |
Unlike other regular expressions in the system, these match words |
Unlike other regular expressions in the system, these match words |
and not characters. Hence something like "(tramp|steamer)flies?" |
and not characters. |
would match "tramp", "steamer", "trampflies", or "steamerflies". |
Hence something like |
|
.Dq (tramp|steamer)flies? |
|
would match |
|
.Dq tramp , |
|
.Dq steamer , |
|
.Dq trampflies , |
|
or |
|
.Dq steamerflies . |
.Sh KEYWORD LIST |
.Sh KEYWORD LIST |
The keyword list is just a list of keywords in the language separated |
The keyword list is just a list of keywords in the language separated |
by spaces. If the "oc" boolean is specified, indicating that upper |
by spaces. |
|
If the |
|
.Dq oc |
|
boolean is specified, indicating that upper |
and lower case are equivalent, then all the keywords should be |
and lower case are equivalent, then all the keywords should be |
specified in lower case. |
specified in lower case. |
.Sh FILES |
.Sh FILES |