ptx_parser/parser/instruction/
trap.rs1#![allow(unused)]
6
7use crate::lexer::PtxToken;
8use crate::parser::{PtxParseError, PtxParser, PtxTokenStream, Span};
9use crate::r#type::common::*;
10
11pub mod section_0 {
12 use super::*;
13 use crate::r#type::instruction::trap::section_0::*;
14
15 impl PtxParser for Trap {
16 fn parse(stream: &mut PtxTokenStream) -> Result<Self, PtxParseError> {
17 stream.expect_string("trap")?;
18 stream.expect_complete()?;
19 stream.expect(&PtxToken::Semicolon)?;
20 Ok(Trap {
21 })
22 }
23 }
24
25
26}
27