aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/functions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile/functions.rs')
-rw-r--r--src/makefile/functions.rs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/makefile/functions.rs b/src/makefile/functions.rs
new file mode 100644
index 0000000..bc39886
--- /dev/null
+++ b/src/makefile/functions.rs
@@ -0,0 +1,31 @@
+use super::token::TokenString;
+
+pub(crate) fn call(name: &str, args: &[TokenString]) -> TokenString {
+ match name {
+ // Text Functions
+ "filter" => todo!(),
+ "filter-out" => todo!(),
+ "sort" => todo!(),
+
+ // File Name Functions
+ "notdir" => todo!(),
+ "basename" => todo!(),
+ "addprefix" => todo!(),
+ "wildcard" => todo!(),
+
+ // foreach
+ "foreach" => todo!(),
+
+ // call
+ "call" => todo!(),
+
+ // eval
+ "eval" => todo!(),
+
+ // shell
+ "shell" => todo!(),
+
+ // fallback
+ _ => panic!("function not implemented: {}", name),
+ }
+}