From 694bed833470393ee00eae0a85bff0c6c90e692a Mon Sep 17 00:00:00 2001 From: bjculkin Date: Wed, 12 Apr 2017 10:45:46 -0400 Subject: Add support for meta-commands Meta-commands allow you to implement meta-operators, whose behavior changes based off of tokens that follow. --- JPratt/src/main/java/bjc/pratt/MetaInitialCommand.java | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 JPratt/src/main/java/bjc/pratt/MetaInitialCommand.java (limited to 'JPratt/src/main/java/bjc/pratt/MetaInitialCommand.java') diff --git a/JPratt/src/main/java/bjc/pratt/MetaInitialCommand.java b/JPratt/src/main/java/bjc/pratt/MetaInitialCommand.java new file mode 100644 index 0000000..067d084 --- /dev/null +++ b/JPratt/src/main/java/bjc/pratt/MetaInitialCommand.java @@ -0,0 +1,11 @@ +package bjc.pratt; + +/** + * A 'meta-command' that yields the actual command to use. + * + * @author bjculkin + * + */ +public interface MetaInitialCommand { + InitialCommand getCommand(ParserContext ctx); +} -- cgit v1.2.3