Skip to main content

eval_line

Function eval_line 

Source
pub fn eval_line(stack: &mut Vec<Value>, line: &str) -> Result<(), PncError>
Expand description

Evaluate a line of RPN tokens against a stack.

Mutates the stack in place. Returns Err on parse, arithmetic, or conversion failures; the stack reflects partial state on error.