pub struct DummyVM { /* private fields */ }Expand description
Open the Python interpreter as a server and act as an Erg interpreter by mediating communication
Pythonインタープリタをサーバーとして開き、通信を仲介することでErgインタープリタとして振る舞う
Implementations§
source§impl DummyVM
impl DummyVM
sourcepub fn exec(&mut self) -> Result<ExitStatus, CompileErrors>
pub fn exec(&mut self) -> Result<ExitStatus, CompileErrors>
Execute the script specified in the configuration.
Trait Implementations§
source§impl Runnable for DummyVM
impl Runnable for DummyVM
type Err = CompileError
type Errs = CompileErrors
const NAME: &'static str = "Erg interpreter"
fn cfg(&self) -> &ErgConfig
fn cfg_mut(&mut self) -> &mut ErgConfig
fn new(cfg: ErgConfig) -> Self
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, CompileErrors>
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 DummyVM
impl Send for DummyVM
impl Sync for DummyVM
impl Unpin for DummyVM
impl !UnwindSafe for DummyVM
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