Put logic for parse_fun_call() in a comment.

This commit is contained in:
Goren Barak 2023-11-25 18:50:59 -05:00
parent c285d14f2e
commit 37e6a85463

View file

@ -31,3 +31,9 @@ pub fn parse_var_declaration(mut tokens: Lexer<Token>) -> Option<Expr> {
}
tok
}
pub fn parse_fun_call(mut tokens: Lexer<Token>) -> Option<Expr> {
// 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()`.
}