#ast #ast-parser #testing

chirrtl-parser

A Rust library that can parse a CHIRRTL text file into a typed AST

9 releases

new 0.1.8 Apr 5, 2025
0.1.7 Apr 4, 2025

#2925 in Parser implementations

MIT license

8MB
2K SLoC

Rust 2K SLoC // 0.0% comments LALRPOP 298 SLoC // 0.0% comments Just 44 SLoC Python 32 SLoC // 0.2% comments

CHIRRTL parser

This library parses CHIRRTL files and generates an AST. Tested for designs such as RocketConfig and LargeBoomV3Config in Chipyard.

Running tests

just test

Dependencies

~12–23MB
~331K SLoC