Browsable Generic editor Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/editor/extracted
Source used for this grammar: Julien Bernier, Manuel Boillod, Joanny Christ, Sylvain Leduby, Generic editor 0.2, GenericEditor.ecore, 2005/02/01

Summary

Syntax

LocatedElement ::=
	Editor
LocatedElement ::=
	AbstractElement
LocatedElement ::=
	Element
LocatedElement ::=
	Format
LocatedElement ::=
	Color
LocatedElement ::=
	Font
LocatedElement ::=
	Indent
Editor ::=
	[extension]::String [abstractElements]::AbstractElement+
AbstractElement ::=
	Block
AbstractElement ::=
	GroupElement
Block ::=
	[blockbegin]::String [blockend]::String
GroupElement ::=
	[indent]::Indent [element]::Element+
Element ::=
	[element]::String [groupElement]::GroupElement
Format ::=
	[color]::Color [font]::Font
Color ::=
	[red]::Integer [green]::Integer [blue]::Integer
Font ::=
	[font]::String [bold]::Boolean [italic]::Boolean
Indent ::=
	[retrait]::String [groupElementIndent]::GroupElement
String ::=
	string
Integer ::=
	integer
Boolean ::=
	"true"
	"false"

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