version 1.2, 1996/06/26 05:42:32 |
version 1.3, 1998/10/30 00:24:42 |
|
|
very similar to |
very similar to |
.Xr termcap 5 . |
.Xr termcap 5 . |
.Sh FIELDS |
.Sh FIELDS |
The following table names and describes each field. |
The following table names and describes each field: |
.Pp |
.Pp |
.Bl -column Namexxx Tpexxx |
.Bl -column Namexxx Tpexxx |
.Sy Name Type Description |
.Sy Name Type Description |
|
|
.Pp |
.Pp |
.Sh EXAMPLES |
.Sh EXAMPLES |
The following entry, which describes the C language, is |
The following entry, which describes the C language, is |
typical of a language entry. |
typical of a language entry: |
.Bd -literal |
.Bd -literal |
C|c:\ |
C|c:\ |
:pb=^\ed?*?\ed?\ep\ed?\e(\ea?\e):bb={:be=}:cb=/*:ce=*/:sb=":se=\ee":\e |
:pb=^\ed?*?\ed?\ep\ed?\e(\ea?\e):bb={:be=}:cb=/*:ce=*/:sb=":se=\ee":\e |
|
|
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 |
|
|
The metasymbols and their meanings are: |
The metasymbols and their meanings are: |
.Bl -tag -width indent |
.Bl -tag -width indent |
.It $ |
.It $ |
the end of a line |
End of a line. |
.It \&^ |
.It \&^ |
the beginning of a line |
Beginning of a line. |
.It \ed |
.It \ed |
a delimiter (space, tab, newline, start of line) |
A delimiter (space, tab, newline, start of line). |
.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. |
.It \&| |
.It \&| |
alternation |
Alternation. |
.It ? |
.It ? |
last item is optional |
Last item is optional. |
.It \ee |
.It \ee |
preceding any string means that the string will not match an |
Preceding any string means that the string will not match an |
input string if the input string is preceded by an escape character (\e). |
input string if the input string is preceded by an escape character (\e). |
This is typically used for languages (like C) which can include the |
This is typically used for languages (like C) which can include the |
string delimiter in a string by escaping it. |
string delimiter in a string by escaping it. |
|
|
.Sh FILES |
.Sh FILES |
.Bl -tag -width /usr/share/misc/vgrindefs -compact |
.Bl -tag -width /usr/share/misc/vgrindefs -compact |
.It Pa /usr/share/misc/vgrindefs |
.It Pa /usr/share/misc/vgrindefs |
File containing terminal descriptions. |
file containing terminal descriptions |
.El |
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr vgrind 1 , |
.Xr troff 1 , |
.Xr troff 1 |
.Xr vgrind 1 |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm |
.Nm |