Struct erg_parser::lex::LexerRunner
source · [−]pub struct LexerRunner { /* private fields */ }
Expand description
Lexerは使い捨てなので、Runnerを用意
Trait Implementations
sourceimpl Runnable for LexerRunner
impl Runnable for LexerRunner
type Err = ParserRunnerError
type Errs = ParserRunnerErrors
const NAME: &'static str = "Erg lexer"
fn new(cfg: ErgConfig) -> Self
fn input(&self) -> &Input
fn finish(&mut self)
fn clear(&mut self)
fn exec(&mut self) -> Result<(), Self::Errs>
fn eval(&mut self, src: Str) -> Result<String, LexerRunnerErrors>
fn start_message(&self) -> String
fn ps1(&self) -> String
fn ps2(&self) -> String
fn quit(&self, code: i32)
fn run(cfg: ErgConfig)
Auto Trait Implementations
impl RefUnwindSafe for LexerRunner
impl !Send for LexerRunner
impl !Sync for LexerRunner
impl Unpin for LexerRunner
impl UnwindSafe for LexerRunner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more