parser

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0, MPL-2.0 Imports: 7 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