Last change
on this file since 1 was
1,
checked in by lnalod, 15 years ago
|
Initial import of YAO sources
|
File size:
576 bytes
|
Line | |
---|
1 | |
---|
2 | import java.util.Hashtable; |
---|
3 | import java.io.*; |
---|
4 | |
---|
5 | /** Not sure what all we will want in this yet. At minimum it can |
---|
6 | * handle the predefined type objects like IntegerType. |
---|
7 | */ |
---|
8 | public class SymbolTable implements Serializable { |
---|
9 | protected Hashtable predefinedScalars = new Hashtable(); |
---|
10 | |
---|
11 | public SymbolTable() { |
---|
12 | predefinedScalars.put("integer", new IntegerType()); |
---|
13 | predefinedScalars.put("real", new RealType()); |
---|
14 | } |
---|
15 | |
---|
16 | public TypeSpecifier getPredefinedType(String name) { |
---|
17 | TypeSpecifier ts = (TypeSpecifier)predefinedScalars.get(name); |
---|
18 | return ts; |
---|
19 | } |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.