WiP pass YamlTreeParser where needed

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:02 +01:00
parent d1c7ae4141
commit b7640a830f
28 changed files with 424 additions and 411 deletions
+4 -6
View File
@@ -132,14 +132,12 @@ public:
return NULL;
}
uint16_t getElmts() {
return stack[stack_level].elmts;
uint16_t getElmts(uint8_t lvl = 0) {
if (stack_level + lvl >= NODE_STACK_DEPTH)
return 0;
return stack[stack_level + lvl].elmts;
}
uint16_t getParentElmts() {
return empty() ? 0 : stack[stack_level + 1].elmts;
}
// Increment the cursor until a match is found or the end of
// the current collection (node of type YDT_NONE) is reached.
//