#ast #ast-parser #parser

chirrtl-parser

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

9 releases

0.1.8 Apr 5, 2025
0.1.7 Apr 4, 2025

#2939 in Parser implementations

Download history 806/week @ 2025-04-02 11/week @ 2025-04-09

817 downloads per month

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
~332K SLoC