01: package murlen.util.fscript;
02:
03: /**
04: * <p>ETreeNode - an Expression tree node - used by Parser</p>
05: * <p>
06: * <I>Copyright (C) 2000 murlen.</I></p>
07: * <p>
08: * This library is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Library General Public
10: * License as published by the Free Software Foundation; either
11: * version 2 of the License, or (at your option) any later version.</p>
12: * <p>
13: * This library is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * Library General Public License for more details.</p>
17: *
18: * <p>You should have received a copy of the GNU Library General Public
19: * License along with this library; if not, write to the Free
20: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA </p>
21: * @author murlen
22: */
23: class ETreeNode {
24:
25: static int E_OP = 0;
26: static int E_VAL = 1;
27:
28: int type;
29:
30: Object value;
31:
32: ETreeNode left;
33: ETreeNode right;
34:
35: ETreeNode parent;
36:
37: public String toString() {
38: return new String("Type=" + type + " Value=" + value);
39: }
40:
41: }
|