parent
e5dac6bdba
commit
1eb5897e4e
@ -1,8 +1,9 @@
|
||||
pub mod error;
|
||||
pub mod input_reader;
|
||||
pub mod lexer;
|
||||
pub mod token;
|
||||
pub mod token_reader;
|
||||
pub mod matching;
|
||||
pub mod tokenizing;
|
||||
mod utils;
|
||||
|
||||
pub use utils::error::*;
|
||||
pub use utils::input_reader::InputReader;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
@ -0,0 +1,7 @@
|
||||
mod lexer;
|
||||
mod token;
|
||||
mod token_reader;
|
||||
|
||||
pub use lexer::Lexer;
|
||||
pub use token::*;
|
||||
pub use token_reader::TokenReader;
|
@ -1,5 +1,5 @@
|
||||
use crate::error::TapeResult;
|
||||
use crate::input_reader::InputReader;
|
||||
use crate::InputReader;
|
||||
use crate::TapeResult;
|
||||
use std::any::{Any, TypeId};
|
||||
use std::future::Future;
|
||||
use std::pin::Pin;
|
@ -1,4 +1,4 @@
|
||||
use crate::token::{EOFToken, Token};
|
||||
use crate::tokenizing::{EOFToken, Token};
|
||||
|
||||
pub struct TokenReader {
|
||||
tokens: Vec<Token>,
|
@ -1,4 +1,4 @@
|
||||
use crate::error::{TapeError, TapeResult};
|
||||
use crate::{TapeError, TapeResult};
|
||||
use std::io::ErrorKind;
|
||||
use tokio::io::{AsyncBufRead, AsyncBufReadExt};
|
||||
|
@ -0,0 +1,2 @@
|
||||
pub mod error;
|
||||
pub mod input_reader;
|
Loading…
Reference in New Issue