kproc_parser/rust/
errors.rs

1//! Error generated by the parser
2//! that it is caused by a syntax
3//! error.
4//!
5//! Useful to print a compiler message.
6use crate::proc_macro::TokenTree;
7
8#[derive(Debug)]
9pub struct SyntaxError {
10    pub tok: TokenTree,
11    pub msg: String,
12}