kproc-parser 0.0.1-beta.7

minimal procedural macros parser that produce a convenient AST by including only the necessary code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Error generated by the parser
//! that it is caused by a syntax
//! error.
//!
//! Useful to print a compiler message.
use crate::proc_macro::TokenTree;

#[derive(Debug)]
pub struct SyntaxError {
    pub tok: TokenTree,
    pub msg: String,
}