Merge pull request #3014 from lioncash/cpath
ExpressionParser: Make all control paths return a value in operator std::string
This commit is contained in:
commit
f2771695a2
|
@ -63,8 +63,6 @@ public:
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case TOK_INVALID:
|
|
||||||
return "Invalid";
|
|
||||||
case TOK_DISCARD:
|
case TOK_DISCARD:
|
||||||
return "Discard";
|
return "Discard";
|
||||||
case TOK_EOF:
|
case TOK_EOF:
|
||||||
|
@ -83,7 +81,11 @@ public:
|
||||||
return "+";
|
return "+";
|
||||||
case TOK_CONTROL:
|
case TOK_CONTROL:
|
||||||
return "Device(" + (std::string)qualifier + ")";
|
return "Device(" + (std::string)qualifier + ")";
|
||||||
|
case TOK_INVALID:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return "Invalid";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue