diff options
| author | Cody <cody@codyq.dev> | 2023-02-27 11:55:17 -0600 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-02-27 11:55:17 -0600 |
| commit | 17110bf563c2f57ab4e9e25e977b74df06b8c1ab (patch) | |
| tree | 5f63b6047db1771aee798293c86682ded0ca4fd6 /src/ast/mod.rs | |
| parent | ebfd74ddf0ef6372624ea171e06f8460d0e1351b (diff) | |
| download | sloth-17110bf563c2f57ab4e9e25e977b74df06b8c1ab.tar.gz | |
Functions beginnings
Diffstat (limited to 'src/ast/mod.rs')
| -rw-r--r-- | src/ast/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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<Expr>), + Call { + ident: String, + arguments: Vec<Expr>, + }, Binary { operator: TokenType, lhs: Box<Expr>, |
