/math-scanner

scanner of mathematical expressions

Primary LanguageC++

AD-HOC Scanner

AH-HOC scanner (Not a Parser!) for simple mathematical expressions that use numbers, the four basic operations, and parentheses.

For example: 3 * (4 +11)/5

These scanner return a sequence of tokens, or a error message if there is an invalid token.

To Run the file: g++ -o scanner scanner.cpp ./scanner