Struct erg_parser::lex::LexerRunner
source · pub struct LexerRunner { /* private fields */ }
Expand description
Lexerは使い捨てなので、Runnerを用意
Trait Implementations§
source§impl Debug for LexerRunner
impl Debug for LexerRunner
source§impl Default for LexerRunner
impl Default for LexerRunner
source§fn default() -> LexerRunner
fn default() -> LexerRunner
Returns the “default value” for a type. Read more
source§impl Runnable for LexerRunner
impl Runnable for LexerRunner
const NAME: &'static str = "Erg lexer"
type Err = ParserRunnerError
type Errs = ParserRunnerErrors
fn cfg(&self) -> &ErgConfig
fn cfg_mut(&mut self) -> &mut ErgConfig
fn finish(&mut self)
source§fn initialize(&mut self)
fn initialize(&mut self)
Erase all but immutable information.
fn exec(&mut self) -> Result<ExitStatus, Self::Errs>
fn eval(&mut self, src: String) -> Result<String, LexerRunnerErrors>
fn expect_block(&self, src: &str) -> BlockKind
fn input(&self) -> &Input
fn set_input(&mut self, input: Input)
fn start_message(&self) -> String
fn ps1(&self) -> String
fn ps2(&self) -> String
fn quit(&mut self, code: i32) -> !
fn quit_successfully(&mut self, output: BufWriter<StdoutLock<'_>>) -> !
fn run(cfg: ErgConfig) -> ExitStatus
Auto Trait Implementations§
impl Freeze for LexerRunner
impl RefUnwindSafe for LexerRunner
impl Send for LexerRunner
impl Sync for LexerRunner
impl Unpin for LexerRunner
impl UnwindSafe for LexerRunner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more