From 37e6a85463210ad6d74a742506744f1f7d94e654 Mon Sep 17 00:00:00 2001 From: Goren Barak Date: Sat, 25 Nov 2023 18:50:59 -0500 Subject: [PATCH] Put logic for `parse_fun_call()` in a comment. --- src/parse/parse.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parse/parse.rs b/src/parse/parse.rs index 0deb14d..3003bf4 100644 --- a/src/parse/parse.rs +++ b/src/parse/parse.rs @@ -31,3 +31,9 @@ pub fn parse_var_declaration(mut tokens: Lexer) -> Option { } tok } + +pub fn parse_fun_call(mut tokens: Lexer) -> Option { + // Is it an Ident? -> Is it a LeftParen? -> Is it a value (I should really make a function to parse that) or is it a RightParen? + // ↓ ↓ + // If it's a value, push that to `params`. Otherwise, params will just be a `Vec::new()`. +}