Browsable Logic Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: markup/scientific/logic/abstract/extracted
Source used for this grammar: Jurgen Vinju, lang::logic::ast::Booleans, 2011–2012 [GitHub]
Source used for this grammar: Jurgen Vinju, lang::logic::ast::Propositions, 2011–2012 [GitHub]

Summary

Syntax

Formula ::=
	[true]::ε
	[false]::ε
	[not]::[arg]::Formula
	[and]::([lhs]::Formula [rhs]::Formula)
	[and]::[args]::Formula*
	[or]::([lhs]::Formula [rhs]::Formula)
	[or]::[args]::Formula*
	[if]::([lhs]::Formula [rhs]::Formula)
	[fi]::([lhs]::Formula [rhs]::Formula)
	[iff]::([lhs]::Formula [rhs]::Formula)
Formula ::=
	[id]::[x]::string

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