SystemRDL formatter #333
fischeti
started this conversation in
Show and tell
Replies: 2 comments
|
Just saw this after commenting on your repo. Love it! As commented elsewhere, recommend ditching the |
0 replies
|
I opened a PR now for the community page: SystemRDL/PeakRDL#84 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I had some fun over the weekend and implemented a formatter for SystemRDL:
https://github.com/fischeti/rdlfmt
I tried to follow the Style Guide as much as possible and it currently (deliberatly) does not have a way of configuring the style differently. But if you don't like the style, suggestions are welcome!
It ships as a standalone
rdlfmtbinary, but it can also be used as apeakrdlplugin i.e.peakrdl fmt my_file.rdl. Both binary and plugin are published on PyPI, resp. crates.io if you prefer the Rust way. The integration as apeakrdlplugin is maybe a bit hacky since it is neither an importer nor an exporter and side-steps the whole system-rdl compiler entirely (since it needs an un-preprocessed syntax tree).Let me know if you think this would be a valuable addition to the community page!
All reactions