Skip to content

Commit

Permalink
impl Parsable for StructType
Browse files Browse the repository at this point in the history
  • Loading branch information
vaivaswatha committed Oct 7, 2023
1 parent 7ae15d7 commit 4c7e3b4
Show file tree
Hide file tree
Showing 6 changed files with 271 additions and 95 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ keywords = ["pliron", "llvm", "mlir", "compiler"]
generational-arena = "0.2"
downcast-rs = "1.2.0"
rustc-hash = "1.1.0"
# anyerror = "1.0.75"
# thiserror = "1.0.24"
# clap = "4.1.6"
apint = "0.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/dialect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Parsable for DialectName {
where
Self: Sized,
{
let id = parsable::parse_id();
let id = parsable::identifier();
let mut parser = id.and_then(|dialect_name| {
let dialect_name = DialectName::new(&dialect_name);
if state_stream.state.ctx.dialects.contains_key(&dialect_name) {
Expand Down
Loading

0 comments on commit 4c7e3b4

Please sign in to comment.