Browsable PNML Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: automata/petri/pnml/standard/lists/extracted
Source used for this grammar: Lom Hillah, RELAX NG implementation of Lists grammar, lists.rng, July 2008 [Download]

Summary

Syntax

BuiltInSort ::=
	List
BuiltInOperator ::=
	ListOperator
List ::=
	[list]::Sort
BuiltInConstant ::=
	EmptyList
ListOperator.content ::=
	BuiltInOperator.content
ListOperator ::=
	ListAppend
	ListConcatenation
	MakeList
	ListLength
	MemberAtIndex
	Sublist
EmptyList ::=
	[emptylist]::(Sort BuiltInConstant.content)
ListLength ::=
	[listlength]::ListOperator.content
MakeList ::=
	[makelist]::(Sort ListOperator.content)
ListConcatenation ::=
	[listconcatenation]::ListOperator.content
ListAppend ::=
	[listappend]::ListOperator.content
MemberAtIndex ::=
	[memberatindex]::([index]::integer ListOperator.content)
Sublist ::=
	[sublist]::([start]::integer [length]::integer ListOperator.content)

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []