From f05e57ba54243c2088c6dfdbdbeae603bd462ecd Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Wed, 23 Feb 2022 20:18:18 -0500 Subject: [PATCH] Fix non-assignment declare parsing --- .../src/lang/vocabulary/item_ops/variable_declare.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mps-interpreter/src/lang/vocabulary/item_ops/variable_declare.rs b/mps-interpreter/src/lang/vocabulary/item_ops/variable_declare.rs index 4e95f28..b17a6a3 100644 --- a/mps-interpreter/src/lang/vocabulary/item_ops/variable_declare.rs +++ b/mps-interpreter/src/lang/vocabulary/item_ops/variable_declare.rs @@ -55,7 +55,7 @@ pub struct VariableDeclareItemOpFactory; impl MpsItemOpFactory for VariableDeclareItemOpFactory { fn is_item_op(&self, tokens: &VecDeque) -> bool { - tokens.len() > 2 && tokens[0].is_let() && tokens[1].is_name() + tokens.len() >= 2 && tokens[0].is_let() && tokens[1].is_name() } fn build_item_op(