Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶ 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.
Click to show internal directories.
Click to hide internal directories.