Parse Ast

Parse TCL code and display the AST Use when this capability is needed.

tomevault-io 35f29be 2 files · 1.5 KB Updated

File contents

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:

  1. Root node structure
  2. Children nodes (procedures, variables, control flow)
  3. Comments extracted
  4. 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.

tomevault-io/skills-registry/tree/main/unknownbreaker--tcl-lsp-nvim--parse-ast commit 35f29be89e

Frequently asked questions

npx skillmds@latest add tomevault-io/parse-ast