package
Version:
v1.3.1
Opens a new window with list of versions in this module.
Published: Jan 25, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package ast declares the types used to represent syntax trees.
type Index struct {
ValuePos int
X Node
Index int
}
An Index node represents an expression followed by an index.
type Node interface {
Pos() int
}
All node types implement the Node interface.
type Root struct {
ValuePos int
}
A Root node represents a root expression.
Pos returns the position of first character belonging to the node.
A Selector node represents an expression followed by a selector.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.