
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]
Fighter, Spec, Cond, Action), 0 root (—), 1 top (Fighter), 0 bottom (—).[fighter], [attribute], [behavior], [const], [and], [or], [action], [choose].⟨name⟩ 4, ⟨specs⟩, ⟨strength⟩, ⟨cond⟩, ⟨move⟩, ⟨fight⟩, ⟨lhs⟩ 2, ⟨rhs⟩ 2, ⟨actions⟩.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