aboutsummaryrefslogtreecommitdiffhomepage
path: root/ptx/src/ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/src/ast.rs')
-rw-r--r--ptx/src/ast.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ptx/src/ast.rs b/ptx/src/ast.rs
index a8309b0..d308479 100644
--- a/ptx/src/ast.rs
+++ b/ptx/src/ast.rs
@@ -31,6 +31,16 @@ pub enum PtxError {
ArrayInitalizer,
#[error("")]
NonExternPointer,
+ #[error("{start}:{end}")]
+ UnrecognizedStatement {
+ start: usize,
+ end: usize,
+ },
+ #[error("{start}:{end}")]
+ UnrecognizedDirective {
+ start: usize,
+ end: usize,
+ },
}
// For some weird reson this is illegal: