identifier assignMethod pattern — Named pattern definition
define ::=identifier
assignMethod
pattern
When identifier
assignMethod
pattern
is
embedded in a grammar, it defines a named pattern or combines a new
definition with an existing one. Named patterns are global to a
grammar
and can be referenced by
ref
in the scope of their
grammar
and by parentRef
in the
scope of the grammars directly embedded in their
grammar
.
When identifier assignMethod pattern
is embedded
in include
, the new definition is a redefinition.
It replaces the definitions from the included grammar unless a
combine
attribute is specified. If one is, the
definitions are combined.
The combination is defined using the assignMethod
,
which may take the values: =
(definition),
&=
(combination by interleave), or
|=
(combination by choice).
18.217.187.179