Files
llgo/chore/llcppg/token/token.go

33 lines
339 B
Go
Raw Normal View History

2024-08-16 15:03:00 +08:00
package token
type Token uint
const (
2024-08-20 08:58:43 +08:00
ILLEGAL Token = iota
2024-08-16 15:03:00 +08:00
/**
* A token that contains some kind of punctuation.
*/
2024-08-20 08:58:43 +08:00
PUNCT
2024-08-16 15:03:00 +08:00
/**
* A language keyword.
*/
2024-08-20 08:58:43 +08:00
KEYWORD
2024-08-16 15:03:00 +08:00
/**
* An identifier (that is not a keyword).
*/
2024-08-20 08:58:43 +08:00
IDENT
2024-08-16 15:03:00 +08:00
/**
* A numeric, string, or character literal.
*/
2024-08-20 08:58:43 +08:00
LITERAL
2024-08-16 15:03:00 +08:00
/**
* A comment.
*/
2024-08-20 08:58:43 +08:00
COMMENT
2024-08-16 15:03:00 +08:00
)