lang

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(ctx context.Context, uri string, args ParseOptions) ([]byte, error)

func Write

func Write(ctx context.Context, repo *uniast.Repository, args WriteOptions) error

Write writes the AST to the output directory.

Types

type ParseOptions

type ParseOptions struct {
	// LSP sever executable path
	LSP string
	// Language of the repo
	Verbose bool
	collect.CollectOption
	// specify the repo id
	RepoID string
}

ParseOptions is the options for parsing the repo.

type WriteOptions

type WriteOptions struct {
	// OutputDir is the output directory.
	OutputDir string
	// Compiler path
	Compiler string
}

Write writes the AST to the output directory.

Directories

Path Synopsis
golang

Jump to

Keyboard shortcuts

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