Add base parser

This commit is contained in:
Dominik Reh
2023-01-28 22:58:29 +01:00
parent a831592c3c
commit b70b0b72cb

14
javascript/_baseParser.js Normal file
View File

@@ -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();
}
}