KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > beaver > spec > ast > Node


1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * This file is part of Beaver Parser Generator. *
3  * Copyright (C) 2003,2004 Alexander Demenchuk <alder@softanvil.com>. *
4  * All rights reserved. *
5  * See the file "LICENSE" for the terms and conditions for copying, *
6  * distribution and modification of Beaver. *
7  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

8
9 package beaver.spec.ast;
10
11 import beaver.Symbol;
12
13 /**
14  * AST nodes are symbols.
15  */

16 public abstract class Node extends Symbol
17 {
18     public void setLocation(int start, int end)
19     {
20         this.start = start;
21         this.end = end;
22     }
23     
24     public abstract void accept(TreeWalker walker);
25 }
26
Popular Tags