Browsable LCF Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: markup/scientific/lcf/v12.0-xsd/extracted
Source used for this grammar: Vadim Zaytsev, Software Language Processing Suite, LCF, shared/xsd/lcf.xsd, 2008–2011, Version 12 [Explore]

Summary

Syntax

configuration ::=
	([shortcut]::shortcutType | [action]::actionType | [source]::sourceType | [target]::targetType | [comment]::mixedType)*
actionType ::=
	[comment]::string? [name]::string+ [definition]::[command]::commandtype+
shortcutType ::=
	[name]::string [definition]::(expansion | string)*
expansion ::=
	[expand]::string
	[expand-type]::ε
	[expand-arguments]::ε
	[expand-source]::ε
	[expand-action]::ε
	[expand-first]::ε
	[expand-second]::ε
	[expand-context]::ε
	[expand-sample]::ε
	[expand-parsed]::ε
	[expand-yields]::ε
commandtype ::=
	(expansion | string)* [err]::string? [out]::string?
sourceType ::=
	[name]::string [extractor]::([name]::string [arguments]::[argument]::(expansion | string)*+) [parser]::[command]::commandtype? [evaluator]::[command]::commandtype?
targetType ::=
	[name]::string [branch]::([input]::string [perform]::string*)+

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