mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
move lexing to the parser crate
This commit is contained in:
parent
958f20ff84
commit
7e99864dbf
5 changed files with 289 additions and 2 deletions
|
@ -18,6 +18,7 @@
|
|||
//! [`Parser`]: crate::parser::Parser
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
|
||||
mod lexer_token;
|
||||
mod token_set;
|
||||
mod syntax_kind;
|
||||
mod event;
|
||||
|
@ -25,9 +26,12 @@ mod parser;
|
|||
mod grammar;
|
||||
mod tokens;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
pub(crate) use token_set::TokenSet;
|
||||
|
||||
pub use crate::{syntax_kind::SyntaxKind, tokens::Tokens};
|
||||
pub use crate::{lexer_token::LexerToken, syntax_kind::SyntaxKind, tokens::Tokens};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct ParseError(pub Box<String>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue