parser

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package parser implements the Vibescript lexer and recursive-descent parser. It produces an AST (see internal/ast) from .vibe source text and is not part of the embedder API surface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(source string) (*ast.Program, []error)

Parse lexes and parses the given source text and returns the resulting AST together with any parse errors encountered. It is the stable entry point used by callers within the module.

Types

type Lexer

type Lexer = lexer

Lexer is the public name for the package-private lexer state.

func NewLexer

func NewLexer(input string) *Lexer

NewLexer returns a new lexer over the given source text.

Jump to

Keyboard shortcuts

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