aboutsummaryrefslogtreecommitdiff
path: root/_mint/parser/throws.js
diff options
context:
space:
mode:
Diffstat (limited to '_mint/parser/throws.js')
-rw-r--r--_mint/parser/throws.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/_mint/parser/throws.js b/_mint/parser/throws.js
new file mode 100644
index 0000000..60aaf4c
--- /dev/null
+++ b/_mint/parser/throws.js
@@ -0,0 +1,7 @@
+const MintParser = require('./base');
+
+module.exports = class MintParserThrows extends MintParser {
+ parse(file) {
+ return file.replace(/yeet ([a-z.A-Z0-9]*)( |)\((.*)\);/gm, "throw new MintExceptionManagerError(\"$1\", $3);")
+ }
+} \ No newline at end of file