source: trunk/yao/share/antlr-2.7.7/examples/java/pascal/Symbol.java @ 1

Last change on this file since 1 was 1, checked in by lnalod, 15 years ago

Initial import of YAO sources

File size: 449 bytes
Line 
1/** Any kind of symbol in a pascal program; variable, type, etc... */
2import java.io.*;
3
4public class Symbol implements Serializable {
5        protected String name;
6
7        public Symbol() {
8        }
9
10        public Symbol(String name) {
11                setName(name);
12        }
13
14        public String getName() {
15                return name;
16        }
17
18        public void setName(String name) {
19                this.name = name;
20        }
21
22        public String toString() {
23                return getClass().getName()+"<"+getName()+">";
24        }
25
26}
Note: See TracBrowser for help on using the repository browser.