NateEpps / ncc4

2 stars 0 forks source link

Math operator requirements #13

Open NateEpps opened 2 years ago

NateEpps commented 2 years ago

This line is in all the math operator implementations

require(tokenType != TokenType::Operator, "non-operator");

Should we be requiring a number? ... although, at the time of this writing, these are the only possible token types

/// @brief Token types
enum class TokenType {
    NumberLiteral, Operator, None
};