File: token_string.go

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (82 lines) | stat: -rw-r--r-- 2,047 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Code generated by "stringer -type=Token -linecomment"; DO NOT EDIT.

package token

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[ILLEGAL-0]
	_ = x[EOF-1]
	_ = x[COMMENT-2]
	_ = x[ATTRIBUTE-3]
	_ = x[literalBeg-4]
	_ = x[IDENT-5]
	_ = x[INT-6]
	_ = x[FLOAT-7]
	_ = x[STRING-8]
	_ = x[INTERPOLATION-9]
	_ = x[BOTTOM-10]
	_ = x[literalEnd-11]
	_ = x[operatorBeg-12]
	_ = x[ADD-13]
	_ = x[SUB-14]
	_ = x[MUL-15]
	_ = x[POW-16]
	_ = x[QUO-17]
	_ = x[IQUO-18]
	_ = x[IREM-19]
	_ = x[IDIV-20]
	_ = x[IMOD-21]
	_ = x[AND-22]
	_ = x[OR-23]
	_ = x[LAND-24]
	_ = x[LOR-25]
	_ = x[BIND-26]
	_ = x[EQL-27]
	_ = x[LSS-28]
	_ = x[GTR-29]
	_ = x[NOT-30]
	_ = x[ARROW-31]
	_ = x[NEQ-32]
	_ = x[LEQ-33]
	_ = x[GEQ-34]
	_ = x[MAT-35]
	_ = x[NMAT-36]
	_ = x[LPAREN-37]
	_ = x[LBRACK-38]
	_ = x[LBRACE-39]
	_ = x[COMMA-40]
	_ = x[PERIOD-41]
	_ = x[ELLIPSIS-42]
	_ = x[RPAREN-43]
	_ = x[RBRACK-44]
	_ = x[RBRACE-45]
	_ = x[SEMICOLON-46]
	_ = x[COLON-47]
	_ = x[OPTION-48]
	_ = x[operatorEnd-49]
	_ = x[keywordBeg-50]
	_ = x[IF-51]
	_ = x[FOR-52]
	_ = x[IN-53]
	_ = x[LET-54]
	_ = x[FUNC-55]
	_ = x[TRUE-56]
	_ = x[FALSE-57]
	_ = x[NULL-58]
	_ = x[keywordEnd-59]
}

const _Token_name = "ILLEGALEOFCOMMENTATTRIBUTEliteralBegIDENTINTFLOATSTRINGINTERPOLATION_|_literalEndoperatorBeg+-*^/quoremdivmod&|&&||===<>!<-!=<=>==~!~([{,....)]};:?operatorEndkeywordBegifforinletfunctruefalsenullkeywordEnd"

var _Token_index = [...]uint8{0, 7, 10, 17, 26, 36, 41, 44, 49, 55, 68, 71, 81, 92, 93, 94, 95, 96, 97, 100, 103, 106, 109, 110, 111, 113, 115, 116, 118, 119, 120, 121, 123, 125, 127, 129, 131, 133, 134, 135, 136, 137, 138, 141, 142, 143, 144, 145, 146, 147, 158, 168, 170, 173, 175, 178, 182, 186, 191, 195, 205}

func (i Token) String() string {
	if i < 0 || i >= Token(len(_Token_index)-1) {
		return "Token(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _Token_name[_Token_index[i]:_Token_index[i+1]]
}