about summary refs log tree commit diff
path: root/tvix/eval/src
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src')
-rw-r--r--tvix/eval/src/compiler.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler.rs b/tvix/eval/src/compiler.rs
index d71eda43aa36..17fd01637592 100644
--- a/tvix/eval/src/compiler.rs
+++ b/tvix/eval/src/compiler.rs
@@ -6,7 +6,7 @@ use crate::errors::EvalResult;
 use crate::opcode::OpCode;
 use crate::value::Value;
 use rnix;
-use rnix::types::TypedNode;
+use rnix::types::{TypedNode, Wrapper};
 
 struct Compiler {
     chunk: Chunk,
@@ -36,6 +36,11 @@ impl Compiler {
                 self.compile_unary_op(op)
             }
 
+            rnix::SyntaxKind::NODE_PAREN => {
+                let op = rnix::types::Paren::cast(node).unwrap();
+                self.compile(op.inner().unwrap())
+            }
+
             kind => {
                 println!("visiting unsupported node: {:?}", kind);
                 Ok(())