tree-sitter-systemtap
July 12, 2023 · View on GitHub
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
- Literals
- Comments
- Variable declarations
- Expressions
- Statements
- Function definitions
- Probe point definitions and aliases
- Conditional preprocessing
- Preprocessor macro definitions and expansions
- Embedded C
License
tree-sitter-systemtap is free and open source software licensed under the MIT license.
Acknowledgements
tree-sitter-systemtap takes after work done by Max Brunsfeld for tree-sitter’s C grammar and Vasil Markoukin for tree-sitter-tlaplus.