Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
func (Annotation) IsDottie ¶
func (a Annotation) IsDottie() bool
func (Annotation) String ¶
func (a Annotation) String() string
type Option ¶
type Option func(*Token)
func WithAnnotation ¶
func WithLineNumber ¶
func WithLiteral ¶
func WithLiteralRune ¶
func WithOffset ¶
func WithQuoteType ¶
type Quote ¶
type Quote uint
func QuoteFromString ¶ added in v0.5.0
type Token ¶
type Type ¶
type Type uint
Type is the set of lexical tokens.
const ( Illegal Type = iota EOF GroupBanner // # -- ### (3 or more hashtags) Comment // # -- # <anything> CommentAnnotation // # -- # @<name> <value> Assign // = -- KEY=VALUE Identifier // Name of the variable Value // Value is an interpreted value of the variable, if it contains special characters, they will be escaped RawValue // RawValue is used as-is. Special characters are not escaped. Space // All whitespace symbols except \n (new line) NewLine // A new line symbol (\n) )
The list of tokens.
Click to show internal directories.
Click to hide internal directories.