Name

start — Start of a grammar

Synopsis

start ::= “start” 
assignMethod 
                     pattern
                  

May be included in

div, grammar, include

XML syntax equivalent

start

Description

The start pattern defines the “start” of a grammar. When this grammar validates a complete document, the start pattern specifies which elements may be used as the document (root) element. When this grammar is embedded within another grammar, the start pattern specifies which pattern should be applied at the location where the grammar is embedded. Like named pattern definitions, start patterns may be combined by choice or interleave and redefined when they are included in include patterns.

The combination is defined by the assignMethod, which may take the values: = (definition), &= (combination by interleave), or |= (combination by choice).

Example

start = element library {
 book-element +
}

start |= book-element
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.22.77