Repository navigation
v0.8.5
Patch Changes
-
#176
889d042Thanks @JounQin! - Use a generated binary wire for AST transport, removing the JSON parser andencoding/jsonfrom the WASM path. -
#173
ac1cbeeThanks @JounQin! -print(ast)now prints the current syntax tree, including edits made to its fields, instead of requiringoriginalText. -
#178
910c9a3Thanks @JounQin! -print(node)now prints printable syntax subtrees: files, statements, commands, words, word parts, and assigns. File output keeps its trailing newline; subtree output does not. -
#179
fec2d3fThanks @JounQin! - AddsplitBraces(word)returning{ word, changed }to split brace expressions intoBraceExpparts for analysis.changedis true when mvdan processed brace syntax, even if noBraceExpremains. The returned word keeps its original source span. Split literals lack source positions, while compositeBraceExpbounds may be derived from retained children and serialized. The printer cannot renderBraceExp; such trees are rejected explicitly.