diff --git a/entity/misc.go b/entity/misc.go index c25e36a..32803c7 100644 --- a/entity/misc.go +++ b/entity/misc.go @@ -1,7 +1,6 @@ package entity import "fmt" -import "strings" import "git.tebibyte.media/sashakoshka/fspl/errors" // Signature is a function or method signature that is used in functions, @@ -131,9 +130,8 @@ func init () { } } -func (this *Operator) Capture (str []string) error { - *this = stringToOperator[strings.Join(str, "")] - return nil +func OperatorFromString (str string) Operator { + return stringToOperator[str] } func (this Operator) String () string {