diff --git a/src/main.rs b/src/main.rs index 1edefca..03e537d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,6 +28,7 @@ enum Token { #[derive(Debug)] enum ASTNode { Name(String), + LangString(String), Number(f64), BinOp(Box, Box, Box), Binding(String, Box) @@ -181,7 +182,7 @@ fn let_expression<'a>(input: &mut Iter) -> ParseResult { } if let Some(&StrLiteral(ref value)) = next { - let ast = ASTNode::Binding(name.clone(), Box::new(ASTNode::Name(value.clone()))); + let ast = ASTNode::Binding(name.clone(), Box::new(ASTNode::LangString(value.clone()))); return ParseResult::Ok(ast); }