Download a1111-microsoftexcel-tagcomplete/javascript/_baseParser.js from toto10/extensions: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F7/a1111-microsoftexcel-tagcomplete/javascript/_baseParser.js
- Command line
-
hf download hf://toto10/extensions@refs/pr/7/a1111-microsoftexcel-tagcomplete/javascript/_baseParser.js
-
curl -L -o _baseParser.js https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F7/a1111-microsoftexcel-tagcomplete/javascript/_baseParser.js
595 Bytes
| class FunctionNotOverriddenError extends Error { | |
| constructor(message = "", ...args) { | |
| super(message, ...args); | |
| this.message = message + " is an abstract base function and must be overwritten."; | |
| } | |
| } | |
| class BaseTagParser { | |
| triggerCondition = null; | |
| constructor (triggerCondition) { | |
| if (new.target === BaseTagParser) { | |
| throw new TypeError("Cannot construct abstract BaseCompletionParser directly"); | |
| } | |
| this.triggerCondition = triggerCondition; | |
| } | |
| parse() { | |
| throw new FunctionNotOverriddenError("parse()"); | |
| } | |
| } |