Work in progress
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user