Files
opentf/internal/lang/exprs/doc.go
Martin Atkins df21c1d8dc lang/exprs: Expression evaluation helpers
This package provides a more generic version of what's currently modeled
by the likes of lang.Scope and lang.Data, designed to avoid having a huge
single type that must know about everything in the language and, for this
package's purposes alone, to avoid knowing anything about the language at
all except that it uses HCL.

This is currently just an experiment not used by anything, and so is dead
code aside from the contrived mini-language implemented in example_test.go.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-10-27 10:15:41 -07:00

14 lines
579 B
Go

// Copyright (c) The OpenTofu Authors
// SPDX-License-Identifier: MPL-2.0
// Copyright (c) 2023 HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Package exprs contains supporting code for expression evaluation.
//
// This package is designed to know nothing about the referenceable symbol tree
// in any particular language, so that knowledge can be kept closer to the
// other code implementing the relevant language. This can therefore be shared
// across many different HCL-based languages, and across different evaluation
// phases of the same language.
package exprs