Cleanup logic of PDT interpreter.
This commit is contained in:
@@ -226,6 +226,10 @@ namespace Cryville.Common.Pdt {
|
||||
while (true) {
|
||||
try { ws(); }
|
||||
catch (IndexOutOfRangeException) { return result; }
|
||||
if (cc == '}') {
|
||||
GetChar();
|
||||
return result;
|
||||
}
|
||||
object pkey = InterpretKey(type);
|
||||
char c = GetChar();
|
||||
switch (c) {
|
||||
@@ -288,8 +292,6 @@ namespace Cryville.Common.Pdt {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case '}':
|
||||
return result;
|
||||
default:
|
||||
throw new InvalidOperationException("Internal error: Invalid key interpretation");
|
||||
}
|
||||
|
Reference in New Issue
Block a user