https://github.com/tong/tree-sitter-hxml
Haxe hxml grammar for tree-sitter
https://github.com/tong/tree-sitter-hxml
haxe hxml tree-sitter
Last synced: 27 days ago
JSON representation
Haxe hxml grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/tong/tree-sitter-hxml
- Owner: tong
- Created: 2025-10-01T20:22:49.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-07T10:16:58.000Z (8 months ago)
- Last Synced: 2025-10-07T10:24:47.517Z (8 months ago)
- Topics: haxe, hxml, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tree-sitter-hxml
A [tree-sitter](https://tree-sitter.github.io/) grammar for [haxe](https://haxe.org/) [hxml](https://haxe.org/manual/compiler-usage-hxml.html) files.
Haxe grammar:
## Grammar Support
- All compilation targets (`--js`, `--cpp`, `--hl`, ...)
- Library dependencies with versions (`--library lib:1.2.3`)
- Defines with values (`-D key=value`)
- Resource embedding (`--resource file@name`)
- Macro execution (`--macro expr`)
- Server configurations (`--connect`, `--server-listen`)
- Custom targets
## Examples
See the [`examples/`](examples/) directory for comprehensive hxml configurations covering various use cases.
## Development
```bash
# Generate parser
npm install
npx tree-sitter generate
# Run tests
npx tree-sitter test
# Test examples
./scripts/test-examples.sh
```
[](https://github.com/tong/tree-sitter-hxml/actions/workflows/test-parser.yml)