I thought I'd make another code golf! Rules are here: http://glatteis.bplaced.net/CodeGolf This time, the task is to make a method (or function) that takes a string containing an expression that follows the rules stated below. It should return a double (or number) that is the solution of the evaluated expression. Code (Text): The parser should parse expressions of the following pattern: There are four functions, which are add, sub, mul and div. They add, subtract, multiply and divide respectively. All of the functions take two arguments. Example: 'add 5 8' should return 5 + 8, which is 13. 'div 8 2' should return 8 / 2, which is 4. 'mul 6 0.5' should return 6 * 0.5, which should be about 3. (the method should not return the calculations but the solutions.) Arguments of functions themselves can be solutions of functions. Example: 'mul add 4 7 2' should return (4+7) * 2, which is 22. Special handling of dividing by 0 is not nessecary. Happy golfing! The golf ends in one or two weeks, depending on how many people want to participate.