ast

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SemiColonToken = &models.Token{
	Type:  tokens.Semicolon,
	Value: ";",
}

Functions

This section is empty.

Types

type Builder

type Builder struct{}

Builder is the AST builder

func NewBuilder

func NewBuilder() *Builder

NewBuilder creates a new AST builder

func (*Builder) Build

func (b *Builder) Build(ts []*models.Token) ([]*models.Node, error)

Build builds the AST from the tokens

Jump to

Keyboard shortcuts

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