Browsable Simple Class Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/oop/simple-class/extracted
Source used for this grammar: Ivan Kurtev, SimpleClass 0.2, WTIP_SimpleClass.ecore,

Summary

Syntax

Classifier ::=
	Class
Classifier ::=
	PrimitiveDataType
Classifier ::=
	[name]::String
Class ::=
	[is_persistent]::Boolean [parent]::Class [attrs]::Attribute+
PrimitiveDataType ::=
	[name]::String
Association ::=
	[name]::String [src]::Class [dest]::Class
Attribute ::=
	[name]::String [is_primary]::Boolean [type]::Classifier
String ::=
	string
Boolean ::=
	"true"
	"false"

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