Parse TCL code and display the resulting Abstract Syntax Tree.
Usage
/parse-ast <file.tcl> - Parse a TCL file and show AST
/parse-ast - Parse code from clipboard/input
Commands
Parse a TCL file:
tclsh tcl/core/ast/builder.tcl $ARGUMENTS
Output
Display the JSON AST with:
- Root node structure
- Children nodes (procedures, variables, control flow)
- Comments extracted
- Any parse errors
Example
Input:
proc hello {name} {
puts "Hello, $name!"
}
Shows AST with procedure definition, parameters, and body.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.