ask-dracula-rs/src/project.rs

26 lines
369 B
Rust
Raw Normal View History

2019-11-02 02:13:45 +01:00
#[derive(Clone, Eq, Hash, PartialEq)]
pub enum StatementKind
{
Axiom,
Lemma,
Conjecture,
}
pub struct Statement<'input>
2019-11-02 02:13:45 +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
}