Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidIndetifier ¶
IsValidIndetifier determines whether the given identifier is valid.
func RegisterIdentifiers ¶
func RegisterIdentifiers(ident ...string)
RegisterIdentifiers registers a new identifiers.
Types ¶
type Kind ¶
type Kind string
Kind is a token kind.
const ( // EOF indicates that we are at the end. EOF Kind = "EOF" // IDENT is a token that represents a tag name. IDENT Kind = "IDENT" // NL is a new line token. NL Kind = "\n" // STRING is string token. STRING Kind = "STRING" // LBRACKET is a `[` token. LBRACKET Kind = "[" // RBRACKET is a `]` token. RBRACKET Kind = "]" // SLASH is `/` token. SLASH Kind = "/" // EQUAL is a `=` token. EQUAL Kind = "=" // QUOTE is a `"` token. QUOTE Kind = `"` )
Click to show internal directories.
Click to hide internal directories.