Files
tree-sitter-xml/README.md
Sean O'Connor 4c8286def0 Add README, .gitignore, and clean up build artifacts
- Added comprehensive README with usage instructions
- Added .gitignore to prevent build artifacts from being committed
- Removed target/ directories and duplicate WASM files
- Cleaned up parser binaries and test files
2025-09-11 11:27:32 -04:00

1.3 KiB

tree-sitter-xml

A Tree-sitter grammar for XML files as used in the nand2tetris course.

Supported File Types

  • .xml - XML compiler output files

Features

  • Syntax highlighting for XML elements, attributes, and text content
  • Code navigation with outline support for XML structure
  • Bracket matching for XML tags
  • Integration with Zed editor and other Tree-sitter compatible editors

Usage

This grammar is designed to work with the nand2tetris-zed extension for Zed editor, providing complete language support for the nand2tetris course.

Grammar Details

  • Language: XML
  • Scope: source.xml
  • File Types: .xml
  • Node Types: element, tag_name, attribute, attribute_name, attribute_value, text, comment

Development

Building

# Generate parser
tree-sitter generate

# Build parser
tree-sitter build

# Test grammar
tree-sitter test

License

MIT License - see LICENSE file for details.