nodeutil

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package nodeutil provides utilities for inspecting the AST.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PurelyEvalPrimary added in v0.10.0

func PurelyEvalPrimary(pn *parse.Primary, ev *eval.Evaler) eval.Value

PurelyEvalPrimary evaluates a primary node without causing any side effects. If this cannot be done, it returns nil.

Currently, only string literals and variables with no @ can be evaluated.

func SimpleCompound

func SimpleCompound(cn *parse.Compound, upto *parse.Indexing, ev *eval.Evaler) (bool, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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