Struct erg_parser::parse::ParserRunner
source · pub struct ParserRunner { /* private fields */ }
Implementations§
source§impl ParserRunner
impl ParserRunner
pub fn new(cfg: ErgConfig) -> Self
pub fn parse_token_stream( &mut self, ts: TokenStream ) -> Result<CompleteArtifact, IncompleteArtifact<Module, ParserRunnerErrors>>
pub fn parse( &mut self, src: String ) -> Result<CompleteArtifact, IncompleteArtifact<Module, ParserRunnerErrors>>
Trait Implementations§
source§impl Debug for ParserRunner
impl Debug for ParserRunner
source§impl Default for ParserRunner
impl Default for ParserRunner
source§fn default() -> ParserRunner
fn default() -> ParserRunner
Returns the “default value” for a type. Read more
source§impl Runnable for ParserRunner
impl Runnable for ParserRunner
type Err = ParserRunnerError
type Errs = ParserRunnerErrors
const NAME: &'static str = "Erg parser"
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, ParserRunnerErrors>
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 RefUnwindSafe for ParserRunner
impl Send for ParserRunner
impl Sync for ParserRunner
impl Unpin for ParserRunner
impl UnwindSafe for ParserRunner
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