selfhost(pyvm): MiniVmPrints – prefer JSON route early-return (ok==1) to avoid fallback loops; keep default behavior unchanged elsewhere
This commit is contained in:
24
src/tokenizer/mod.rs
Normal file
24
src/tokenizer/mod.rs
Normal file
@ -0,0 +1,24 @@
|
||||
/*!
|
||||
* Nyash Tokenizer — split modules (kinds/cursor/whitespace/lexers/engine)
|
||||
*/
|
||||
|
||||
mod kinds;
|
||||
mod cursor;
|
||||
mod whitespace;
|
||||
mod lex_string;
|
||||
mod lex_number;
|
||||
mod lex_ident;
|
||||
mod engine;
|
||||
|
||||
pub use kinds::{Token, TokenType, TokenizeError};
|
||||
|
||||
/// Nyashトークナイザー
|
||||
pub struct NyashTokenizer {
|
||||
pub(crate) input: Vec<char>,
|
||||
pub(crate) position: usize,
|
||||
pub(crate) line: usize,
|
||||
pub(crate) column: usize,
|
||||
}
|
||||
|
||||
// Public API and core logic are implemented in submodules via impl NyashTokenizer
|
||||
|
||||
Reference in New Issue
Block a user