[][src]Struct cmd_runner::parser::Parser

pub struct Parser {
    pub assign_map: HashMap<String, String>,
    // some fields omitted
}

语法树

Fields

assign_map: HashMap<String, String>

Implementations

impl Parser[src]

pub fn load<P: AsRef<Path>>(file_path: P) -> Self[src]

从文件中获取每行代码 [去除空格]

pub fn parse_line(s: &String) -> NodeType[src]

pub fn parse_lines(codes: Vec<String>) -> Self[src]

pub fn run_line(
    assign_map: &HashMap<String, String>,
    node: &NodeType,
    line: usize
)
[src]

pub fn run(&self)[src]

Trait Implementations

impl Debug for Parser[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.