llcppg/ast:marco & token
This commit is contained in:
27
chore/llcppg/token/token.go
Normal file
27
chore/llcppg/token/token.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package token
|
||||
|
||||
type Token uint
|
||||
|
||||
const (
|
||||
/**
|
||||
* A token that contains some kind of punctuation.
|
||||
*/
|
||||
PunctuationToken Token = iota
|
||||
/**
|
||||
* A language keyword.
|
||||
*/
|
||||
KeywordToken
|
||||
|
||||
/**
|
||||
* An identifier (that is not a keyword).
|
||||
*/
|
||||
IdentifierToken
|
||||
/**
|
||||
* A numeric, string, or character literal.
|
||||
*/
|
||||
LiteralToken
|
||||
/**
|
||||
* A comment.
|
||||
*/
|
||||
CommentToken
|
||||
)
|
||||
Reference in New Issue
Block a user