diff options
author | Tom Willemse | 2021-01-20 22:52:47 -0800 |
---|---|---|
committer | Tom Willemse | 2021-01-20 22:52:47 -0800 |
commit | 922a8f68637f24fc447a8d687b75a676d3b310bb (patch) | |
tree | 881eccd352db8839dee5e0ef92e82af6e0dd5554 /src/com/craftinginterpreters/lox/LoxCallable.java | |
parent | 60b940f1f5b411053ee62d5cd5188fe62e8f9e58 (diff) | |
download | crafting-interpreters-922a8f68637f24fc447a8d687b75a676d3b310bb.tar.gz crafting-interpreters-922a8f68637f24fc447a8d687b75a676d3b310bb.zip |
Add function calling syntax
Diffstat (limited to 'src/com/craftinginterpreters/lox/LoxCallable.java')
-rw-r--r-- | src/com/craftinginterpreters/lox/LoxCallable.java | 9 |
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); +} |