Struct rustyard::shunting_yard::ShuntingYard
[−]
[src]
pub struct ShuntingYard<'a> { /* fields omitted */ }
The ShuntingYard struct transforms an expression to a 64-bit floating point value
Methods
impl<'a> ShuntingYard<'a>
[src]
fn new() -> ShuntingYard<'a>
fn calculate(&mut self, raw_input: &'a str) -> Result<f64, Vec<String>>
calculate returns a 64-bit floating value after parsing the Reverse Polish Notation represented by the output_queue.
fn to_string_ast(&self) -> String
to_string_ast returns the string representation of the Lexer tokens.