[][src]Struct romulus::Interpreter

pub struct Interpreter { /* fields omitted */ }

The interpreter which processes lines with a romulus program

Methods

impl Interpreter[src]

pub fn new<S: AsRef<str>>(
    buf: S,
    sep: Regex,
    implicit_print: bool
) -> Result<Interpreter, String>
[src]

Creates a new interpreter with a string romulus program

pub fn file<P: AsRef<Path>>(
    file: P,
    sep: Regex,
    implicit_print: bool
) -> Result<Interpreter, String>
[src]

Creates a new interpreter with a the contents of a file

pub fn process<R: BufRead, W: Write>(&self, sin: &mut R, sout: &mut W)[src]

Process an input stream and writes the results for it's romulus program to the output stream

pub fn lint(&self) -> Vec<LintMessage>[src]

Lint the current program

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]