xref: /csrg-svn/usr.bin/pascal/pdx/tree/tree.rep (revision 22773)
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
7#ifndef lint
8static char sccsid[] = "@(#)tree.rep	5.1 (Berkeley) 06/07/85";
9#endif not lint
10
11/*
12 * representation of a parse tree
13 *
14 * This should have a union in it, but unions just don't
15 * seem to work right in C.  I don't want to have to specify an
16 * extra level of referencing, e.g. a.b.c, because there's really
17 * only one level there.
18 */
19
20struct node {
21	OP op;
22	SYM *nodetype;
23	NODE *left, *right;
24	SYM *nameval;
25	long lconval;
26	double fconval;
27	char *sconval;
28	NODE *what, *where, *cond;
29};
30