1/* 2 * Copyright (c) 1982 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 * 6 * @(#)tree.rep 5.2 (Berkeley) 06/07/85 7 */ 8 9/* 10 * representation of a parse tree 11 * 12 * This should have a union in it, but unions just don't 13 * seem to work right in C. I don't want to have to specify an 14 * extra level of referencing, e.g. a.b.c, because there's really 15 * only one level there. 16 */ 17 18struct node { 19 OP op; 20 SYM *nodetype; 21 NODE *left, *right; 22 SYM *nameval; 23 long lconval; 24 double fconval; 25 char *sconval; 26 NODE *what, *where, *cond; 27}; 28