Struct erg_parser::parse::ParserRunner
source · [−]pub struct ParserRunner { /* private fields */ }
Implementations
sourceimpl ParserRunner
impl ParserRunner
pub fn parse_token_stream(
&mut self,
ts: TokenStream
) -> Result<Module, ParserRunnerErrors>
pub fn parse(&mut self, src: String) -> Result<Module, 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
const NAME: &'static str = "Erg parser"
fn new(cfg: ErgConfig) -> Self
fn cfg(&self) -> &ErgConfig
fn finish(&mut self)
fn clear(&mut self)
fn exec(&mut self) -> Result<i32, Self::Errs>
fn eval(&mut self, src: String) -> Result<String, ParserRunnerErrors>
fn input(&self) -> &Input
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 ParserRunner
impl Send for ParserRunner
impl Sync for ParserRunner
impl Unpin for ParserRunner
impl UnwindSafe for ParserRunner
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