Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFile ¶
ParseFile parses the source code from the specified file or Reader and returns the Go structure 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.
func ParseFileASTJson ¶
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 ¶
type ParseProgramArgs = gpyrpc.ParseProgram_Args
type ParseProgramResult ¶
type ParseProgramResult = gpyrpc.ParseProgram_Result
func ParseProgram ¶
func ParseProgram(args *ParseProgramArgs) (*ParseProgramResult, error)
Parse KCL program with entry files and return the AST JSON string.