MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / main

Function main

code/chapter03/infix_to_postfix.rs:130–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130fn main() {
131 let infix = "( A + B ) * ( C + D )";
132 let postfix = infix_to_postfix(infix);
133 match postfix {
134 Some(val) => {
135 println!("infix: {infix} -> postfix: {val}");
136 },
137 None => {
138 println!("{infix} is not a corret infix string");
139 },
140 }
141}

Callers

nothing calls this directly

Calls 1

infix_to_postfixFunction · 0.70

Tested by

no test coverage detected