A tree-sitter grammar for haxe hxml files.
Haxe grammar: https://github.com/tong/tree-sitter-haxe/
- 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
See the examples/ directory for comprehensive hxml configurations covering various use cases.
# Generate parser
npm install
npx tree-sitter generate
# Run tests
npx tree-sitter test
# Test examples
./scripts/test-examples.sh