mix metastatic.inspect
(Metastatic v0.10.4)
View Source
Inspect the MetaAST structure of source code files.
Usage
mix metastatic.inspect FILE [OPTIONS]Arguments
FILE- Source file to inspect
Options
--format FORMAT- Output format (tree, json, plain) [default: tree]--layer LAYER- Filter by layer (core, extended, native, all) [default: all]--variables- Show only variables--language LANG- Source language (optional, auto-detected from extension)
Examples
Inspect a Python file (tree format):
mix metastatic.inspect hello.pyShow MetaAST in JSON format:
mix metastatic.inspect hello.py --format jsonFilter to show only core layer nodes:
mix metastatic.inspect hello.py --layer coreExtract only variables:
mix metastatic.inspect hello.py --variablesOutput Formats
- tree (default) - Human-readable tree structure with indentation
- json - Machine-readable JSON for programmatic processing
- plain - Simple text representation
Layer Filtering
- core - Universal constructs (literals, variables, operators, etc.)
- extended - Common patterns (loops, lambdas, collections)
- native - Language-specific constructs
- all - Show everything (default)