collection_query_to_table

root

type

'type' stategroup (
	'collection query' ['collection' 'query']
		'columns' component 'collection block'
	'acyclic graph list query' ['graph' 'query']
		'columns' component 'list block'
)

component rules

collection block

'collection block'
	'has columns' stategroup (
		'no'
		'yes'
			'header' text
			'property' ['->' 'select'] reference
			'type' ['as'] stategroup (
				'number' ['number']
				'text' ['text']
				'state' ['state']
				'date' ['date']
				'time' ['time']
				'datetime' ['datetime']
				'decimal' ['decimal'] 'shift' number
			)
			'next' component 'collection block'
	)

list block

'list block'
	'has columns' stategroup (
		'no'
		'yes'
			'header' text
			'property' ['->' 'select'] reference
			'type' ['as'] stategroup (
				'number' ['number']
				'text' ['text']
				'state' ['state']
				'date' ['date']
				'time' ['time']
				'datetime' ['datetime']
				'decimal' ['decimal'] 'shift' number
			)
			'next' component 'list block'
	)