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]
Formula
), 0 root (—), 0 top (—), 0 bottom (—).[true]
, [false]
, [arg]
, [not]
, [lhs]
5, [rhs]
5, [and]
2, [args]
2, [or]
2, [if]
, [fi]
, [iff]
, [x]
, [id]
.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