From 789791692a20e4da7b798a249ca24ed35cd78b5f Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 5 Nov 2023 07:00:38 -0500 Subject: make parser extendable --- libalee/parser.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libalee/parser.hpp') diff --git a/libalee/parser.hpp b/libalee/parser.hpp index 6af3ef9..f868afb 100644 --- a/libalee/parser.hpp +++ b/libalee/parser.hpp @@ -26,6 +26,8 @@ class Parser { public: + static Error (*customParse)(State&, Word); + /** * Parses (and evaluates) the given string using the given state. * The string is stored in the state's input buffer, then parseSource() @@ -40,6 +42,8 @@ public: */ static Error parseSource(State&); + static void processLiteral(State&, Cell); + private: /** * Parses the given word using the given state. -- cgit v1.2.3