MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / THROWS

Function THROWS

src/GCodes/GCodeBuffer/ExpressionParser.cpp:86–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85// Evaluate a bracketed expression
86void 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.
106void ExpressionParser::ApplyObjectModelArrayIndex(ExpressionValue& rslt, int indexCol, uint32_t indexValue, bool evaluate) THROWS(GCodeException)

Callers

nothing calls this directly

Calls 15

GetColumnFunction · 0.85
StringHandleClass · 0.85
DriverIdClass · 0.85
SetStrStrResultFunction · 0.85
SafeStrptimeFunction · 0.85
SoftwareResetFunction · 0.85
GetNumElementsMethod · 0.80
GetElementMethod · 0.80
SetNullMethod · 0.80
SetIntMethod · 0.80
Get56BitValueMethod · 0.80

Tested by

no test coverage detected