Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: automata/petri/pnml/standard/partitions/extracted
Source used for this grammar: Lom Hillah, RELAX NG implementation of Partitions grammar, partitions.rng
, July 2008 [Download]
SortDeclaration
, OperatorDeclaration
, BuiltInOperator
, Partition
, PartitionElement
, PartitionOperator.content
, PartitionOperator
, PartitionLessThan
, PartitionGreaterThan
, PartitionElementOf
), 0 root (—), 3 top (SortDeclaration
, OperatorDeclaration
, BuiltInOperator
), 5 bottom (BuiltInOperator.content
, Sort
, Term
, SortDeclaration.content
, OperatorDeclaration.content
).[partition]
, [partitionelement]
, [ltp]
, [gtp]
, [refpartition]
, [partitionelementof]
.SortDeclaration ::= Partition
OperatorDeclaration ::= PartitionElement
BuiltInOperator ::= PartitionOperator
Partition ::= [partition]::SortDeclaration.content Sort PartitionElement
PartitionElement ::= [partitionelement]::OperatorDeclaration.content Term
PartitionOperator.content ::= BuiltInOperator.content
PartitionOperator ::= PartitionLessThan PartitionGreaterThan PartitionElementOf
PartitionLessThan ::= [ltp]::PartitionOperator.content
PartitionGreaterThan ::= [gtp]::PartitionOperator.content
PartitionElementOf ::= [partitionelementof]::[refpartition]::string PartitionOperator.content