xref: /original-bsd/usr.bin/pascal/pdx/tree/tree.rep (revision 0b685140)
1/* Copyright (c) 1982 Regents of the University of California */
2
3/* static char sccsid[] = "@(#)tree.rep 1.2 01/18/82"; */
4
5/*
6 * representation of a parse tree
7 *
8 * This should have a union in it, but unions just don't
9 * seem to work right in C.  I don't want to have to specify an
10 * extra level of referencing, e.g. a.b.c, because there's really
11 * only one level there.
12 */
13
14struct node {
15	OP op;
16	SYM *nodetype;
17	NODE *left, *right;
18	SYM *nameval;
19	long lconval;
20	double fconval;
21	char *sconval;
22	NODE *what, *where, *cond;
23};
24