1
2
3 package syntax
4
5 import "strconv"
6
7 const (
8 _Op_name_0 = "NoMatchEmptyMatchLiteralCharClassAnyCharNotNLAnyCharBeginLineEndLineBeginTextEndTextWordBoundaryNoWordBoundaryCaptureStarPlusQuestRepeatConcatAlternate"
9 _Op_name_1 = "opPseudo"
10 )
11
12 var (
13 _Op_index_0 = [...]uint8{0, 7, 17, 24, 33, 45, 52, 61, 68, 77, 84, 96, 110, 117, 121, 125, 130, 136, 142, 151}
14 )
15
16 func (i Op) String() string {
17 switch {
18 case 1 <= i && i <= 19:
19 i -= 1
20 return _Op_name_0[_Op_index_0[i]:_Op_index_0[i+1]]
21 case i == 128:
22 return _Op_name_1
23 default:
24 return "Op(" + strconv.FormatInt(int64(i), 10) + ")"
25 }
26 }
27
View as plain text