|
|
|
@ -777,11 +777,22 @@ namespace Compiler
|
|
|
|
|
++optionalCount;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (*iter=='X')
|
|
|
|
|
{
|
|
|
|
|
parser.reset();
|
|
|
|
|
|
|
|
|
|
parser.setOptional (true);
|
|
|
|
|
|
|
|
|
|
scanner.scan (parser);
|
|
|
|
|
|
|
|
|
|
if (optional && parser.isEmpty())
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
parser.reset();
|
|
|
|
|
|
|
|
|
|
if (optional || *iter == 'X')
|
|
|
|
|
if (optional)
|
|
|
|
|
parser.setOptional (true);
|
|
|
|
|
|
|
|
|
|
scanner.scan (parser);
|
|
|
|
@ -789,8 +800,6 @@ namespace Compiler
|
|
|
|
|
if (optional && parser.isEmpty())
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
if (*iter != 'X')
|
|
|
|
|
{
|
|
|
|
|
std::vector<Interpreter::Type_Code> tmp;
|
|
|
|
|
|
|
|
|
|
char type = parser.append (tmp);
|
|
|
|
@ -804,7 +813,6 @@ namespace Compiler
|
|
|
|
|
++optionalCount;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
while (!stack.empty())
|
|
|
|
|
{
|
|
|
|
|