From 17110bf563c2f57ab4e9e25e977b74df06b8c1ab Mon Sep 17 00:00:00 2001 From: Cody Date: Mon, 27 Feb 2023 11:55:17 -0600 Subject: Functions beginnings --- src/ast/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ast/mod.rs') diff --git a/src/ast/mod.rs b/src/ast/mod.rs index 04b1d26..d006737 100644 --- a/src/ast/mod.rs +++ b/src/ast/mod.rs @@ -39,9 +39,6 @@ pub enum Stmt { Return { value: Expr, }, - Print { - value: Expr, - }, } #[derive(Debug, Eq, PartialEq)] @@ -55,6 +52,10 @@ pub enum Expr { Literal(Literal), Variable(String), Grouping(Box), + Call { + ident: String, + arguments: Vec, + }, Binary { operator: TokenType, lhs: Box, -- cgit v1.2.3