Browsable Super Awesome Fighter Grammar

CC-BY

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

Summary

Syntax

Fighter ::=
	[fighter]::(name⟩:stringspecs⟩:Spec*)
Spec ::=
	[attribute]::(name⟩:stringstrength⟩:integer)
	[behavior]::(cond⟩:Condmove⟩:Actionfight⟩:Action)
Cond ::=
	[const]::⟨name⟩:string
	[and]::(lhs⟩:Condrhs⟩:Cond)
	[or]::(lhs⟩:Condrhs⟩:Cond)
Action ::=
	[action]::⟨name⟩:string
	[choose]::⟨actions⟩:string*

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