| www.delorie.com/gnu/docs/a2ps/a2ps_93.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
See section 7.5.5 P-Rules, for the definition of P-rule.
Because of various short cuts, there are many ways to declare a rule:
rules ::= rule_1 `,' rule_2...
rule ::= `(' lhs rhs `)'
| lhs srhs ;
lhs ::= string | regex ;
rhs ::= srhs `,' ...
srhs ::= latex-keyword | expansion face
expansion ::= string | `\'num | <nothing>;
face ::= face-keyword | <nothing>;
|
The rules are the following:
#define RE_SYNTAX_A2PS \
(/* Allow char classes. */ \
RE_CHAR_CLASSES \
/* Be picky. */ \
| RE_CONTEXT_INVALID_OPS \
/* Allow intervals with `{' and `}', forbid invalid ranges. */\
| RE_INTERVALS | RE_NO_BK_BRACES | RE_NO_EMPTY_RANGES \
/* `(' and `)' are the grouping operators. */ \
| RE_NO_BK_PARENS \
/* `|' is the alternation. */ \
| RE_NO_BK_VBAR)
|
Basically it means that all of the possible operators are used, and that they are in non-backslashed form. For instance `(' and `)' stand for the group operator, while `\\(' stands for the character `('. See section `Regular Expression Syntax' in Regex manual, for a detailed description of the regular expressions.
Keyword.
PLAIN is used.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |