Documentation
¶
Overview ¶
Package astjson encodes and decodes an *ast.Program to and from a kind-tagged JSON document. The document is the editable AST surface handed to JavaScript plugins running inside QuickJS: every node becomes an object with a "kind" discriminator plus its exported fields, so plugin authors can inspect and patch the tree with plain JS and hand it back.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeProgram ¶
DecodeProgram reconstructs a program from an AST document. It accepts the output of EncodeProgram or a hand-edited equivalent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.