Documentation

Overview

Package parser implements a parser for HCL (HashiCorp Configuration Language)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(src []byte) (*ast.File, error)

Parse returns the fully parsed source and returns the abstract syntax tree.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) Parse

func (p *Parser) Parse() (*ast.File, error)

Parse returns the fully parsed source and returns the abstract syntax tree.

type PosError

type PosError struct {
	Pos token.Pos
	Err error
}

PosError is a parse error that contains a position.

func (*PosError) Error

func (e *PosError) Error() string

Source Files