An open API service indexing awesome lists of open source software.

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

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
```

[![test](https://github.com/tong/tree-sitter-hxml/actions/workflows/test-parser.yml/badge.svg)](https://github.com/tong/tree-sitter-hxml/actions/workflows/test-parser.yml)