Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/atl/QVT_SimpleRDBMS/extracted
Source used for this grammar: Ivan Kurtev, SimpleRDBMS 0.2, QVT_SimpleRDBMS.ecore
,
RModelElement
, Schema
, Table
, Column
, Key
, ForeignKey
, String
), 0 root (—), 1 top (RModelElement
), 0 bottom (—).[tables]
, [schema]
, [column]
3, [key]
2, [foreignKey]
2, [type]
, [owner]
3, [refersToOpposite]
, [refersTo]
.RModelElement ::= Schema
RModelElement ::= Table
RModelElement ::= Column
RModelElement ::= Key
RModelElement ::= ForeignKey
Schema ::=
[tables]::Table
Table ::= [schema]::Schema [column]::Column[key]::Key [foreignKey]::ForeignKey
Column ::= [type]::String [owner]::Table [key]::Key[foreignKey]::ForeignKey
Key ::= [owner]::Table [column]::Column[refersToOpposite]::ForeignKey
ForeignKey ::=
[column]::Column
[owner]::Table [refersTo]::KeyString ::= string