Browsable Class Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/oop/class/extracted
Source used for this grammar: Frédéric Jouault, Class 1.1, Class.ecore, 2005/03/18

Summary

Syntax

Boolean ::=
	"true"
	"false"
Integer ::=
	integer
String ::=
	string
NamedElt ::=
	Classifier
NamedElt ::=
	Attribute
Classifier ::=
	DataType
Classifier ::=
	Class
DataType ::=
	ε
Class ::=
	[super]::Class+ [attr]::Attribute+ [isAbstract]::Boolean
Attribute ::=
	[multiValued]::Boolean [type]::Classifier [owner]::Class

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