ptx-90-parser-span-derive

Crates.ioptx-90-parser-span-derive
lib.rsptx-90-parser-span-derive
version0.1.0
created_at2025-11-20 00:22:27.899337+00
updated_at2025-11-20 00:22:27.899337+00
descriptionDerive the Spanned helper trait used throughout ptx-90-parser AST types.
homepagehttps://github.com/jialunzhang-psu/ptx-90-parser
repositoryhttps://github.com/jialunzhang-psu/ptx-90-parser
max_upload_size
id1940987
size7,343
Jialun Zhang (jialunzhang-psu)

documentation

https://docs.rs/ptx-90-parser-span-derive

README

ptx-90-parser-span-derive

ptx-90-parser-span-derive (imported as ptx_90_parser_span_derive) is a small proc-macro crate that powers the ptx-90-parser project.
It generates Spanned trait implementations for structs and enums whose fields include a span value and mirrors the helper methods that the parser expects.

use ptx_90_parser_span_derive::Spanned;

#[derive(Spanned)]
pub struct Operand {
    pub value: String,
    pub span: Span,
}
Commit count: 0

cargo fmt