Add a bunch of documentation, and somewhat cleanup, the code in src/backend/.

This commit is contained in:
2023-04-16 18:41:48 -07:00
parent 7ad28a9b23
commit 84321cb2de
5 changed files with 311 additions and 75 deletions

View File

@@ -163,6 +163,15 @@ where
}
}
impl From<ValueOrRef> for Expression {
fn from(value: ValueOrRef) -> Self {
match value {
ValueOrRef::Value(loc, val) => Expression::Value(loc, val),
ValueOrRef::Ref(loc, var) => Expression::Reference(loc, var),
}
}
}
#[derive(Debug)]
pub enum Value {
Number(Option<u8>, i64),