Work in progress

This commit is contained in:
2020-01-25 12:55:23 +01:00
parent a7e8368634
commit b95bda810a
2 changed files with 33 additions and 11 deletions

View File

@@ -1,8 +1,31 @@
struct Context
pub struct ScopedFormula
{
free_variable_declarations: foliage::VariableDeclarations,
formula: foliage::Formula,
}
fn read(rule: &clingo::ast::Rule, context: &mut crate::Context)
pub struct Context
{
scoped_formulas: Vec<ScopedFormula>,
}
impl Context
{
pub fn new() -> Self
{
Self
{
scoped_formulas: vec![],
}
}
}
pub fn translate_body ...
pub fn read(rule: &clingo::ast::Rule, context: &mut Context)
{
let mut variable_declaration_stack: foliage::VariableDeclarationStack;
println!("{:?}", rule.head());
println!("{:?}", rule.body());
}