Struct erg_parser::parse::ParserRunner
source · [−]pub struct ParserRunner { /* private fields */ }
Implementations
sourceimpl ParserRunner
impl ParserRunner
pub fn parse(&mut self, ts: TokenStream) -> Result<AST, ParserRunnerErrors>
pub fn parse_from_str(&mut self, src: Str) -> Result<AST, ParserRunnerErrors>
Trait Implementations
sourceimpl Debug for ParserRunner
impl Debug for ParserRunner
sourceimpl Runnable for ParserRunner
impl Runnable for ParserRunner
type Err = ParserRunnerError
type Errs = ParserRunnerErrors
fn new(cfg: ErgConfig) -> Self
fn input(&self) -> &Input
fn start_message(&self) -> String
fn finish(&mut self)
fn clear(&mut self)
fn eval(&mut self, src: Str) -> Result<String, ParserRunnerErrors>
fn ps1(&self) -> String
fn ps2(&self) -> String
fn quit(&self, code: i32)
fn run(cfg: ErgConfig)
Auto Trait Implementations
impl RefUnwindSafe for ParserRunner
impl !Send for ParserRunner
impl !Sync for ParserRunner
impl Unpin for ParserRunner
impl UnwindSafe for ParserRunner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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