Browsable Super Awesome Fighter Grammar

CC-BY

Grammar connected by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/saf/abstract/connected
Source used for this grammar: Tijs van der Storm, lang::saf::AST, 11 October 2012 [Explore]

Summary

Syntax

Fighter ::=
	[fighter]::([name]::string [specs]::Spec*)
Spec ::=
	[attribute]::([name]::string [strength]::integer)
	[behavior]::([cond]::Cond [move]::Action [fight]::Action)
Cond ::=
	[const]::[name]::string
	[and]::([lhs]::Cond [rhs]::Cond)
	[or]::([lhs]::Cond [rhs]::Cond)
Action ::=
	[action]::[name]::string
	[choose]::[actions]::string*

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