#!/bin/bash
# Parse a wasot file and output S-expressions
# Usage: ./parse.sh <file.wasot>

if [ -z "$1" ]; then
    echo "Usage: $0 <file.wasot>" >&2
    exit 1
fi

if [ ! -f "$1" ]; then
    echo "Error: File '$1' not found" >&2
    exit 1
fi

npx tree-sitter parse "$1" 2>/dev/null
