Browsable CML Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: markup/scientific/cml/guyard/extracted
Source used for this grammar: Pierrick Guyard, Chemical Markup Language, CML.ecore, 2005/06/22

Summary

Syntax

String ::=
	string
Integer ::=
	integer
Boolean ::=
	"true"
	"false"
Any ::=
	_String
Any ::=
	_Link
Any ::=
	_Float
Any ::=
	_Integer
Any ::=
	_StringArray
Any ::=
	_FloatArray
Any ::=
	_IntegerArray
Any ::=
	_FloatMatrix
Any ::=
	_Coordinate2
Any ::=
	_Coordinate3
Any ::=
	_Angle
Any ::=
	_Torsion
Any ::=
	_List
Any ::=
	Molecule
Any ::=
	Formula
Any ::=
	Atom
Any ::=
	Atom_Array
Any ::=
	Bond
Any ::=
	Bond_Array
Any ::=
	Electron
Any ::=
	Reaction
Any ::=
	Crystal
Any ::=
	Sequence
Any ::=
	Feature
AngleUnits ::=
	[degrees]::ε
	[radians]::ε
AtomRefs_Element ::=
	_StringBuiltin
StringBuiltin ::=
	[id]::ε
	[elementType]::ε
	[atomId]::ε
	[residueType]::ε
	[residueId]::ε
	[atomRef]::ε
	[order]::ε
	[stereo]::ε
	[spaceground]::ε
_String ::=
	ε
_Link ::=
	ε
FloatBuiltin ::=
	[x2]::ε
	[y2]::ε
	[x3]::ε
	[y3]::ε
	[z3]::ε
	[xFract]::ε
	[yFract]::ε
	[zFract]::ε
	[occupancy]::ε
	[isotope]::ε
	[formalCharge]::ε
	[hydrogenCount]::ε
	[nonHydrogenCount]::ε
	[atomParity]::ε
	[length]::ε
	[acell]::ε
	[bcell]::ε
	[ccell]::ε
	[alpha]::ε
	[beta]::ε
	[gamma]::ε
	[z]::ε
_Float ::=
	ε
IntegerBuiltin ::=
	[isotope]::ε
	[formalCharge]::ε
	[hydrogenCount]::ε
	[nonHydrogenCount]::ε
	[atomParity]::ε
	[z]::ε
_Integer ::=
	ε
_StringArray ::=
	[delimiter]::String
_FloatArray ::=
	ε
_IntegerArray ::=
	ε
_FloatMatrix ::=
	ε
Coordinate2Builtin ::=
	[xy2]::ε
_Coordinate2 ::=
	ε
Coordinate3Builtin ::=
	[xyz3]::ε
	[xyzFract]::ε
_Coordinate3 ::=
	ε
_Angle ::=
	ε
_Torsion ::=
	ε
_List ::=
	[any]::Any+
Molecule ::=
	[any]::Any+
Formula ::=
	[any]::Any+
Atom ::=
	[any]::Any+
Atom_Array ::=
	[any]::Any+
Bond ::=
	[any]::Any+
Bond_Array ::=
	[any]::Any+
Electron ::=
	[any]::Any+
Reaction ::=
	[any]::Any+
Crystal ::=
	[any]::Any+
Sequence ::=
	[any]::Any+
Feature ::=
	[any]::Any+

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