Menu

Tree [4f1e1c] master /
 History

HTTPS access


File Date Author Commit
 MathParserUnitTest 2013-12-09 patelmaulik patelmaulik [66e0c8] Initial commit
 SimpleMathParserApp 2013-12-09 patelmaulik patelmaulik [66e0c8] Initial commit
 README.txt 2013-12-09 patelmaulik patelmaulik [ced0f3] README file
 Screenshot.png 2013-12-09 patelmaulik patelmaulik [4f1e1c] Screenshot
 SimpleMathParser.sln 2013-12-09 patelmaulik patelmaulik [66e0c8] Initial commit
 SimpleMathParser.suo 2013-12-09 patelmaulik patelmaulik [66e0c8] Initial commit
 SimpleMathParser.v11.suo 2013-12-09 patelmaulik patelmaulik [66e0c8] Initial commit

Read Me

**  Simple Math Parser **


I have created this parser as part of my interview screening. 
Have fun!


Description:

The parser must implement an order of precedence of left to right, brackets are used to explicitly denote precedence by grouping parts of an expression that should be evaluated first again left to right

The parser must recognise the input string and evaluate the expression.


Rules:

a = '+', b = '-', c = '*', d = '/', e = '(', f = ')'



Acceptance criteria

Input: 3a2c4
Result: 20

Input: 32a2d2
Result: 17

Input: 500a10b66c32
Result: 14208

Input: 3ae4c66fb32
Result: 235

Input: 3c4d2aee2a4c41fc4f
Result: 990


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.