package syntax
import "strconv"
func _() {
var x [1 ]struct {}
_ = x [OpNoMatch -1 ]
_ = x [OpEmptyMatch -2 ]
_ = x [OpLiteral -3 ]
_ = x [OpCharClass -4 ]
_ = x [OpAnyCharNotNL -5 ]
_ = x [OpAnyChar -6 ]
_ = x [OpBeginLine -7 ]
_ = x [OpEndLine -8 ]
_ = x [OpBeginText -9 ]
_ = x [OpEndText -10 ]
_ = x [OpWordBoundary -11 ]
_ = x [OpNoWordBoundary -12 ]
_ = x [OpCapture -13 ]
_ = x [OpStar -14 ]
_ = x [OpPlus -15 ]
_ = x [OpQuest -16 ]
_ = x [OpRepeat -17 ]
_ = x [OpConcat -18 ]
_ = x [OpAlternate -19 ]
_ = x [opPseudo -128 ]
}
const (
_Op_name_0 = "NoMatchEmptyMatchLiteralCharClassAnyCharNotNLAnyCharBeginLineEndLineBeginTextEndTextWordBoundaryNoWordBoundaryCaptureStarPlusQuestRepeatConcatAlternate"
_Op_name_1 = "opPseudo"
)
var (
_Op_index_0 = [...]uint8 {0 , 7 , 17 , 24 , 33 , 45 , 52 , 61 , 68 , 77 , 84 , 96 , 110 , 117 , 121 , 125 , 130 , 136 , 142 , 151 }
)
func (i Op ) String () string {
switch {
case 1 <= i && i <= 19 :
i -= 1
return _Op_name_0 [_Op_index_0 [i ]:_Op_index_0 [i +1 ]]
case i == 128 :
return _Op_name_1
default :
return "Op(" + strconv .FormatInt (int64 (i ), 10 ) + ")"
}
}
The pages are generated with Golds v0.7.0-preview . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .