tree-sitter-systemverilog
v0.3.1
Published
SystemVerilog 1800-2023 Parser
Downloads
325
Maintainers
Readme
tree-sitter-systemverilog
Full SystemVerilog IEEE 1800-2023 grammar for tree-sitter.
Differences with tree-sitter-verilog
Pros
- Full implementation of the latest SystemVerilog standard (IEEE 1800-2023)
- Robust and reliable: sv-tests results
- Actively maintained
- Implements node fields
- Supports parsing of code snippets (e.g., always block outside of a module)
- Basic preprocessing capabilities
- Thoroughly tested (~3000 tests) including:
- Currently used by:
- Emacs
verilog-ts-mode nvim systemverilogpluginhelix- mergiraf
- Emacs
Cons
- Generated parser size is larger (~60MB vs ~45MB)
- Generation of the compiled grammar takes longer (only needs to be done once)
References
- https://en.wikipedia.org/wiki/Verilog
- http://tree-sitter.github.io/tree-sitter/creating-parsers
