Teknomancer / sysprocalc

Command-line expression-evaluator and x86 register descriptions
Apache License 2.0
0 stars 1 forks source link

Check for too many paranthesis nesting #8

Closed Teknomancer closed 3 years ago

Teknomancer commented 3 years ago

Handle a bounded number of open paranthesis and bail out if more than that is entered in the expressions.

Have a practical number like 32 or something.

Implementing this by bumping up nesting counter when "(" is encountered and bumping down when ")" is encountered.