parser

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2017 License: MPL-2.0, MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL