| 84 | |
| 85 | // Evaluate a bracketed expression |
| 86 | void ExpressionParser::ParseExpectKet(ExpressionValue& rslt, bool evaluate, char closingBracket) THROWS(GCodeException) |
| 87 | { |
| 88 | CheckStack(StackUsage::ParseInternal); |
| 89 | ParseInternal(rslt, evaluate, 0); |
| 90 | if (CurrentCharacter() == closingBracket) |
| 91 | { |
| 92 | AdvancePointer(); |
| 93 | } |
| 94 | else if (CurrentCharacter() == ',' && closingBracket == '}') |
| 95 | { |
| 96 | CheckStack(StackUsage::ParseGeneralArray); |
| 97 | ParseGeneralArray(rslt, evaluate); |
| 98 | } |
| 99 | else |
| 100 | { |
| 101 | ThrowParseException("expected '%c'", (uint32_t)closingBracket); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | // Handle an index after an object model array expression. |
| 106 | void ExpressionParser::ApplyObjectModelArrayIndex(ExpressionValue& rslt, int indexCol, uint32_t indexValue, bool evaluate) THROWS(GCodeException) |
nothing calls this directly
no test coverage detected