get method
Implementation
@override
Object? get(Token name) {
switch (name.lexeme) {
case 'regexp':
return _regExp;
case 'allMatches':
return _regExp.allMatches;
case 'firstMatch':
return _regExp.firstMatch;
case 'hasMatch':
return _regExp.hasMatch;
case 'stringMatch':
return _regExp.stringMatch;
}
throw "Unknown property: ${name.lexeme}";
}