selfhost(pyvm): MiniVmPrints – prefer JSON route early-return (ok==1) to avoid fallback loops; keep default behavior unchanged elsewhere

This commit is contained in:
Selfhosting Dev
2025-09-22 07:54:25 +09:00
parent 27568eb4a6
commit 8e4cadd349
348 changed files with 9981 additions and 30074 deletions

24
src/tokenizer/mod.rs Normal file
View 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