Expressions

- Eliminated % modulus operator - who cares?
- Found a potential problem with argv[0].
This commit is contained in:
Paul Beckingham
2011-06-28 00:47:28 -04:00
parent 3096364352
commit 9ceae7c5c2
2 changed files with 2 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ static struct
// { "-", 15, 'u', 1, 'r' }, // Unary minus
{ "*", 13, 'b', 1, 'l' }, // Multiplication
{ "/", 13, 'b', 1, 'l' }, // Division
{ "%", 13, 'b', 1, 'l' }, // Modulus
// { "%", 13, 'b', 1, 'l' }, // Modulus
{ "+", 12, 'b', 1, 'l' }, // Addition
{ "-", 12, 'b', 1, 'l' }, // Subtraction
{ "<", 10, 'b', 1, 'l' }, // Less than
@@ -288,7 +288,7 @@ void Arguments::categorize ()
// program
else if (arg == this->begin ())
{
arg->second = "program";
arg->second = "program"; // TODO Is this a problem for expressions that do not contain a program name?
}
// command