Browsable OCL Types Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/ocl/types/extracted
Source used for this grammar: Julien Baudry, OCL_Types.ecore, 2006/07/10

Summary

Syntax

Type ::=
	BasicType
Type ::=
	InstanceType
Type ::=
	EnumType
Type ::=
	OclAnyType
Type ::=
	OclTypeType
Type ::=
	CollectionType
BasicType ::=
	IntegerType
BasicType ::=
	RealType
BasicType ::=
	StringType
BasicType ::=
	BooleanType
InstanceType ::=
	[classifier]::Classifier
EnumType ::=
	[enumLiteral]::EnumLiteral+
OclAnyType ::=
	[supertype]::Type+ [subtype]::Type+ [collectionType]::CollectionType+
OclTypeType ::=
	[supertype]::Type+ [subtype]::Type+ [collectionType]::CollectionType+
CollectionType ::=
	SetType
CollectionType ::=
	SequenceType
CollectionType ::=
	BagType
IntegerType ::=
	ε
RealType ::=
	ε
StringType ::=
	ε
BooleanType ::=
	ε
Classifier ::=
	[instanceType]::InstanceType
EnumLiteral ::=
	[enumType]::EnumType
SetType ::=
	[elementType]::Type
SequenceType ::=
	[elementType]::Type
BagType ::=
	[elementType]::Type
Boolean ::=
	"true"
	"false"
Integer ::=
	integer
String ::=
	string

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