C 5
Ops.c Guest on 21st November 2020 12:28:50 AM
  1. #include <stdio.h>
  2. #include "Wff.h"
  3.  
  4. Wff forked(int nodeT, Wff L, Wff R)
  5. /* construct the parse tree <L,R> from nodeT-ype & subtrees L & R.  L.Allison*/
  6.  { Wff T; T = (Wff)malloc(sizeof(Node));
  7.    T->left  = L;
  8.    T->right = R;
  9.    T->nodeType = nodeT;
  10.    T->id[0] = 0;  /* empty string */
  11.    return T;
  12.  }/*forked*/
  13.  
  14. /* Basic Tree Operations */

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Recent Pastes

Raw Paste

Login or Register to edit or fork this paste. It's free.