Switch to SV frontend
Problem to solve
Long term goal of improving maintainability and improve tmrg by switching from string parsing to a SystemVerilog tokenizer frontent.
Target audience
Further details
SystemVerilog frontend start to appear on the open source scenario.
These allow reading in the code and obtaining a serializable object which contains the already parsed code.
This would allow improving tmrg
by making it more maintainable.
Proposal
A good candidate seems to be https://github.com/MikePopoloski/slang. The
What does success look like, and how can we measure that?
Complete rewrite of tmrg
Links / references
- https://github.com/MikePopoloski/slang: C++ software parsing SystemVerilog
- https://github.com/MikePopoloski/pyslang: python wrapper
- https://github.com/AsFigo/pyslint: example of usage of pyslang (in this case for a linter)
- https://sv-lang.com/explore: tool to test out if syntax is recognised by slang without having to build it locally
Edited by Matteo Lupi