Back to godoc.org

Package parser

v0.0.0-...-392dba7
Latest Go to latest

The highest tagged major version is .

Published: May 9, 2017 | License: MPL-2.0 | Module: github.com/daidokoro/hcl

Overview

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

Index

func Parse

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

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

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier