pub(crate) mod common;
pub(crate) mod function;
pub(crate) mod instruction;
pub(crate) mod module;
pub(crate) mod variable;
use crate::lexer::PtxToken;
#[allow(unused_imports)]
pub(crate) use common::{
push_decimal, push_directive, push_identifier, push_opcode, push_register, push_token_from_str,
};
pub trait PtxUnparser {
fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>);
fn to_tokens(&self) -> Vec<PtxToken> {
let mut tokens = Vec::new();
self.unparse_tokens(&mut tokens);
tokens
}
}