Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
Convert infix arithmetic expression to prefix expression. Take account of these symbols: ( ) / * + - and respect operator precedence. All values are either single alphabetic characters or positive integers. Usage: ./prefixer [OPTION] SOURCE [OPTION] not mandatory: -r : Reduce the expression as much as possible before the output. Examples: >./prefixer folder/expression (3+v)/9*2+3 becomes (+ 3(* 2(/ 9(+ v 3)))) >./prefixer -r folder/expression (3+2)/9*t+3 becomes (+ 3(* t 0.5555556)) Author: Remy Loubradou