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

https://github.com/ok-ryoko/tree-sitter-systemtap

SystemTap grammar for tree-sitter
https://github.com/ok-ryoko/tree-sitter-systemtap

parser systemtap tree-sitter

Last synced: 4 months ago
JSON representation

SystemTap grammar for tree-sitter

Awesome Lists containing this project

README

          

# tree-sitter-systemtap

[SystemTap] grammar and queries for [tree-sitter] as interpreted by [Ryoko] from the SystemTap v4.8 man pages, language reference, tapsets and test suite

## Objectives

- Enable accurate syntax highlighting in a manner consistent with the SystemTap language server
- Help SystemTap script authors avoid parser errors
- Provide a rich concrete syntax tree
- Strike an intuitive balance between tree-sitter and SystemTap conventions

## Language feature checklist

- [x] Literals
- [x] Comments
- [x] Variable declarations
- [x] Expressions
- [x] Statements
- [x] Function definitions
- [x] Probe point definitions and aliases
- [x] Conditional preprocessing
- [x] Preprocessor macro definitions and expansions
- [x] Embedded C

## License

tree-sitter-systemtap is free and open source software licensed under the [MIT license][license].

## Acknowledgements

tree-sitter-systemtap takes after work done by [Max Brunsfeld] for [tree-sitter’s C grammar][tree-sitter-c] and [Vasil Markoukin] for [tree-sitter-tlaplus].

[license]: ./LICENSE.txt
[Max Brunsfeld]: https://github.com/maxbrunsfeld
[Ryoko]: https://github.com/ok-ryoko
[SystemTap]: https://sourceware.org/systemtap/
[tree-sitter-c]: https://github.com/tree-sitter/tree-sitter-c
[tree-sitter-tlaplus]: https://github.com/tlaplus-community/tree-sitter-tlaplus
[tree-sitter]: https://github.com/tree-sitter/tree-sitter
[Vasil Markoukin]: https://github.com/susliko