Browsable MTRANS 0.1 Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/atl/MTRANS/extracted
Source used for this grammar: Hugo Brunelière, MTRANS 0.1, MTRANS.ecore, 2005/08/10

Summary

Syntax

MetaClass ::=
	ε
MetaModel ::=
	ε
Module ::=
	[name]::String [mode]::String [metaDest]::MetaModel+ [metaSource]::MetaModel+ [rules]::Rule+
Rule ::=
	[isAbstract]::Boolean [isEntryPoint]::Boolean [name]::String [module]::Module [target]::MetaClass [source]::MetaClass [declaration]::Variable [sections]::Section+ [guard]::Expression [inheritances]::Inheritance+
Inheritance ::=
	[rule]::Rule [expressions]::Expression+ [inheritedRules]::Rule+
Expression ::=
	[operator]::String [inheritance]::Inheritance [rule]::Rule [instruction]::Instruction
Section ::=
	[kind]::String [rule]::Rule [instructions]::Instruction+
Instruction ::=
	[body]::Expression [section]::Section
Variable ::=
	[name]::String [rule]::Rule
Boolean ::=
	"true"
	"false"
String ::=
	string

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