if (true) { // main sentence structure drawMainSentence(); // call drawMainSentence } else if (true) { // direct object
Posted: Mon Jun 06, 2022 12:33 pm
if (true) { // main sentence structure drawMainSentence(); // call drawMainSentence } else if (true) { // direct object structure /* call drawDirectObjectLine */ } else if (true) { // modifier structure (adj or adv) if (true) { // modifier structure (adj) /* call drawAdj Line */ } else { // modifier structure (adv) /* call drawAdvLine */ } } else { // word /* set idx equal to e- 4 */ // shift values, so idx is in range [0,4] if (true) { // bottom if (true) { eft (adj) drawAdj (words [idx]); // call drawAdj and send it the value stored at location idx of words } else { // right (adv) /* call drawAdv and send it the value stored at location idx of words */ } } else { // top if (true) { // left (subject) /* call drawSubject and send it the value stored at location idx of words [idx] */ } else { // right (predicate or direct object) if (true) { // predicate (diagram with no direct object) /* call drawPredicate and send it the value stored at location idx of words [idx] */ } else { // diagram with direct object (predicate or direct object) if (true) { // predicate /* call drawPredicate and send it the value stored at location idx of words [idx] */ else // direct object /* call drawDirectObject and send it the value stored at location idx of words [idx] */ }