From 922a8f68637f24fc447a8d687b75a676d3b310bb Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 20 Jan 2021 22:52:47 -0800 Subject: Add function calling syntax --- src/com/craftinginterpreters/lox/LoxCallable.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/com/craftinginterpreters/lox/LoxCallable.java (limited to 'src/com/craftinginterpreters/lox/LoxCallable.java') 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 arguments); +} -- cgit v1.2.3-54-g00ecf