An open API service indexing awesome lists of open source software.

https://github.com/arkenidar/consoleapp-operators

C# operators and text parsing exercise
https://github.com/arkenidar/consoleapp-operators

algorithm cli cs dhtml easy-to-understand html js naive php ts

Last synced: about 1 month ago
JSON representation

C# operators and text parsing exercise

Awesome Lists containing this project

README

          

# examples of supported calculations requested as formulas
- 3 + 2
- 3 / 2
- 3 % 2
- -4 + 2 * 3
- -1 * ( 5 + 3 + 1 )
- 3 * ( sqrt 4 )
- ( sqrt ( ( 3 ^ 2 ) + ( 4 ^ 2 ) ) )

# currently supported operators
- if (word == "+" || word == "-" || word == "*" || word == "/" || word == "^" || word == "%" || word == "sqrt")
- "binary" means 2 operands for the operator
- \+ summation (binary)
- \- subtraction (binary)
- \* multiplication (binary)
- / division (binary)
- % modulo (binary)
- ^ exponentiation (binary)
- sqrt square root (unary)
- "unary" means 1 operand for the operator