File: token.go

package info (click to toggle)
golang-github-digitalocean-go-qemu 0.0~git20250212.ee9b066-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 860 kB
  • sloc: sh: 34; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 386 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
package token

// Type describes the type of token.
type Type string

// Types of tokens.
const (
	Illegal = "illegal"
	EOF     = "EOF"

	LeftCurly    = "{"
	RightCurly   = "}"
	LeftSquare   = "["
	RightSquare  = "]"
	Comma        = ","
	SingleQuote  = "'"
	Colon        = ":"
	AlphaNumeric = "alphanum"
)

// Token is a lexed token.
type Token struct {
	Type    Type
	Literal string
}