Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pos ¶
type Pos struct { Filename string // filename, if any Offset int // offset, starting at 0 Line int // line number, starting at 1 Column int // column number, starting at 1 (character count) }
Pos describes an arbitrary source position including the file, line, and column location. A Position is valid if the line number is > 0.
type Token ¶
Token defines a single HCL token which can be obtained via the Scanner
type Type ¶
type Type int
Type is the set of lexical tokens of the HCL (HashiCorp Configuration Language)
func (Type) IsIdentifier ¶
IsIdentifier returns true for tokens corresponding to identifiers and basic type literals; it returns false otherwise.
func (Type) IsLiteral ¶
IsLiteral returns true for tokens corresponding to basic type literals; it returns false otherwise.
func (Type) IsOperator ¶
IsOperator returns true for tokens corresponding to operators and delimiters; it returns false otherwise.
Click to show internal directories.
Click to hide internal directories.