File:  [CSRG BSD Unix] / 43BSD / ucb / pascal / pdx / tree / tree.rep
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

/*
 * Copyright (c) 1982 Regents of the University of California.
 * All rights reserved.  The Berkeley software License Agreement
 * specifies the terms and conditions for redistribution.
 *
 *	@(#)tree.rep	5.2 (Berkeley) 6/7/85
 */

/*
 * representation of a parse tree
 *
 * This should have a union in it, but unions just don't
 * seem to work right in C.  I don't want to have to specify an
 * extra level of referencing, e.g. a.b.c, because there's really
 * only one level there.
 */

struct node {
	OP op;
	SYM *nodetype;
	NODE *left, *right;
	SYM *nameval;
	long lconval;
	double fconval;
	char *sconval;
	NODE *what, *where, *cond;
};

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.