aboutsummaryrefslogtreecommitdiff
path: root/_mint/parser/throws.js
blob: 60aaf4c55f6cdb4e22546d4f03b802a047c367b4 (plain)
1
2
3
4
5
6
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);")
    }
}