QnnOkabayashi / curse-lang

1 stars 1 forks source link

`#[derive(HasSpan)]` #22

Open QnnOkabayashi opened 1 year ago

QnnOkabayashi commented 1 year ago

Writing HasSpan impls really clutters the AST code. We should write a proc macro that derives it so that the first field is the start and the last field is the end. Might be a little tricky on enums...