Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/tabular/schema/extracted
Source used for this grammar: Hugo Brunelière, RelationalDBSchema 1.0, RelationalDBSchema.ecore
, 2006/10/31
NamedElement
, DataBase
, Table
, Column
, Integer
, String
, Boolean
), 0 root (—), 2 top (NamedElement
, Integer
), 0 bottom (—).[SGBDname]
, [tables]
, [database]
, [columns]
, [key]
, [dataType]
, [null]
, [defaultValue]
, [owner]
, [keyOf]
.NamedElement ::= DataBase
NamedElement ::= Table
NamedElement ::= Column
DataBase ::=
[SGBDname]::String [tables]::Table
Table ::= [database]::DataBase [columns]::Column[key]::Column
Column ::= [dataType]::String [null]::Boolean [defaultValue]::String [owner]::Table [keyOf]::Table
Integer ::= integer
String ::= string
Boolean ::= "true" "false"