aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/craftinginterpreters/lox/LoxCallable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/craftinginterpreters/lox/LoxCallable.java')
-rw-r--r--src/com/craftinginterpreters/lox/LoxCallable.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/craftinginterpreters/lox/LoxCallable.java b/src/com/craftinginterpreters/lox/LoxCallable.java
new file mode 100644
index 0000000..4204c20
--- /dev/null
+++ b/src/com/craftinginterpreters/lox/LoxCallable.java
@@ -0,0 +1,9 @@
+package com.craftinginterpreters.lox;
+
+import java.util.List;
+
+interface LoxCallable {
+ int arity();
+
+ Object call(Interpreter interpreter, List<Object> arguments);
+}