Browsable OCL Values Grammar

CC-BY

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

Summary

Syntax

Value ::=
	BasicValue
Value ::=
	ObjectValue
Value ::=
	EnumValue
Value ::=
	UndefinedValue
Value ::=
	CollectionValue
BasicValue ::=
	IntegerValue
BasicValue ::=
	RealValue
BasicValue ::=
	StringValue
BasicValue ::=
	BooleanValue
IntegerValue ::=
	[val]::Integer
RealValue ::=
	[val]::Double
StringValue ::=
	[val]::String
BooleanValue ::=
	[val]::Boolean
ObjectValue ::=
	[object]::Object
Object ::=
	[objectValue]::ObjectValue
EnumValue ::=
	[enumLiteral]::EnumLiteral
EnumLiteral ::=
	[enumValue]::EnumValue
UndefinedValue ::=
	[type]::Type [bagValue]::BagValue+ [sequenceValue]::SequenceValue+ [setValue]::SetValue+
BagValue ::=
	[elements]::Value+
SequenceValue ::=
	[elements]::Value+
SetValue ::=
	[elements]::Value+
Count ::=
	[num]::Integer
Boolean ::=
	"true"
	"false"
Integer ::=
	integer
String ::=
	string

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