Browsable API2MoL Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: api/api2mol/abstract/extracted
Source used for this grammar: Javier Canovas, Frédéric Jouault, Jordi Cabot, Jesus Garcia Molina, api2mol.ecore, 2011-04-08 [api2mol.ecore]

Summary

Syntax

Definition ::=
	[context]::string+ [defaultMetaclass]::DefaultMetaclassSection [mappings]::Mapping+
DefaultMetaclassSection ::=
	[metaclassName]::string [attribute]::string
Mapping ::=
	[metaclass]::string [instanceClass]::string [sections]::Section+
Section ::=
	DefaultMetaclassSection
Section ::=
	PropertySection
Section ::=
	NewSection
Section ::=
	MultipleSection
Section ::=
	ValueSection
PropertySection ::=
	[property]::string [statements]::Statement+
NewSection ::=
	[constructors]::Constructor+
MultipleSection ::=
	[statements]::Statement+
ValueSection ::=
	[metaValue]::string [instanceValue]::string
Statement ::=
	[type]::StatementType [variables]::string+ [calls]::MethodCall+
StatementType ::=
	[GET]::ε
	[SET]::ε
	[APPEND]::ε
	[INSERT_AT]::ε
	[REMOVE]::ε
	[REMOVE_AT]::ε
	[REMOVE_LAST]::ε
	[REMOVE_ALL]::ε
	[COUNT]::ε
	[ACCESSORS]::ε
	[DIRECT]::ε
NamedElement ::=
	MethodCall
NamedElement ::=
	Parameter
MethodCall ::=
	Constructor
MethodCall ::=
	[params]::Parameter+
Parameter ::=
	[name]::string
Constructor ::=
	[params]::Parameter+

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