2019-11-02 02:13:45 +01:00
|
|
|
#[derive(Clone, Eq, Hash, PartialEq)]
|
|
|
|
pub enum StatementKind
|
|
|
|
{
|
|
|
|
Axiom,
|
|
|
|
Lemma,
|
|
|
|
Conjecture,
|
|
|
|
}
|
|
|
|
|
2019-11-05 19:44:28 +01:00
|
|
|
pub struct Statement<'input>
|
2019-11-02 02:13:45 +01:00
|
|
|
{
|
2019-11-05 19:44:28 +01:00
|
|
|
pub kind: StatementKind,
|
|
|
|
pub original_text: &'input str,
|
|
|
|
pub formula: foliage::Formula,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub enum Block<'input>
|
|
|
|
{
|
|
|
|
Statement(Statement<'input>),
|
|
|
|
Whitespace(&'input str),
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Project<'input>
|
|
|
|
{
|
|
|
|
pub blocks: Vec<Block<'input>>,
|
2019-11-02 02:13:45 +01:00
|
|
|
}
|