Browsable PNML Grammar

CC-BY

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

Summary

Syntax

BuiltInSort ::=
	Number
BuiltInOperator ::=
	IntegerOperator
BuiltInConstant ::=
	NumberConstant
Number ::=
	Natural
	Positive
	Integer
Integer ::=
	[integer]::ε
Natural ::=
	[natural]::ε
Positive ::=
	[positive]::ε
IntegerOperator.content ::=
	BuiltInOperator.content
IntegerOperator ::=
	Addition
	Subtraction
	Multiplication
	Division
	Modulo
	GreaterThan
	GreaterThanOrEqual
	LessThan
	LessThanOrEqual
NumberConstant ::=
	[numberconstant]::([value]::integer (BuiltInConstant.content Number))
LessThan ::=
	[lt]::IntegerOperator
LessThanOrEqual ::=
	[leq]::IntegerOperator
GreaterThan ::=
	[gt]::IntegerOperator
GreaterThanOrEqual ::=
	[geq]::IntegerOperator
Addition ::=
	[addition]::IntegerOperator
Subtraction ::=
	[subtraction]::IntegerOperator
Multiplication ::=
	[mult]::IntegerOperator
Division ::=
	[div]::IntegerOperator
Modulo ::=
	[mod]::IntegerOperator

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