parser

package
v0.10.5-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFileASTJson

func ParseFileASTJson(filename string, src interface{}) (result string, err error)

ParseFileASTJson parses the source code from the specified file or Reader and returns the JSON representation of the Abstract Syntax Tree (AST). The source code can be provided directly as a string or []byte, or indirectly via a filename or an io.Reader. If src is nil, the function reads the content from the provided filename.

Types

type ParseProgramArgs added in v0.9.2

type ParseProgramArgs = gpyrpc.ParseProgram_Args

type ParseProgramResult added in v0.9.2

type ParseProgramResult = gpyrpc.ParseProgram_Result

func ParseProgram added in v0.9.2

func ParseProgram(args *ParseProgramArgs) (*ParseProgramResult, error)

Parse KCL program with entry files and return the AST JSON string.

Jump to

Keyboard shortcuts

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