summaryrefslogtreecommitdiff
path: root/rust/src/ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/ast.rs')
-rw-r--r--rust/src/ast.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/src/ast.rs b/rust/src/ast.rs
index b179704..0493f59 100644
--- a/rust/src/ast.rs
+++ b/rust/src/ast.rs
@@ -5,6 +5,7 @@ pub enum Value {
Num(i32),
Bool(bool),
Sym(String),
+ App(Box<Value>, Box<Value>),
}
impl Display for Value {
@@ -13,6 +14,7 @@ impl Display for Value {
Value::Num(i) => write!(f, "{}", i),
Value::Bool(b) => write!(f, "{}", b),
Value::Sym(s) => write!(f, "{}", s),
+ Value::App(l, r) => write!(f, "({} {})", l, r),
}
}
}