From b70b0b72cb030721d4722f200f8a4853ee9ae3b8 Mon Sep 17 00:00:00 2001 From: Dominik Reh Date: Sat, 28 Jan 2023 22:58:29 +0100 Subject: [PATCH] Add base parser --- javascript/_baseParser.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 javascript/_baseParser.js diff --git a/javascript/_baseParser.js b/javascript/_baseParser.js new file mode 100644 index 0000000..6c468cf --- /dev/null +++ b/javascript/_baseParser.js @@ -0,0 +1,14 @@ +class BaseTagParser { + triggerCondition = null; + + constructor (triggerCondition) { + if (new.target === BaseCompletionParser) { + throw new TypeError("Cannot construct abstract BaseCompletionParser directly"); + } + this.triggerCondition = triggerCondition; + } + + parse() { + throw new NotImplementedError(); + } +} \ No newline at end of file