Parser for the Ato hardware description language.
This crate provides a complete parser for the Ato DSL, producing a typed AST with error recovery using the chumsky parser combinator library.
Example
use parse;
let source = r#"
module MyModule:
pin p1
signal sig
p1 ~ sig
"#;
match parse
Error Recovery
The parser supports error recovery, allowing it to continue parsing after
encountering errors. Use parse_with_recovery to get both the AST and errors:
use parse_with_recovery;
let source = "module M:\n pass\n";
let = parse_with_recovery;
if let Some = ast
for error in &errors