[ create a new paste ] login | about

Link: http://codepad.org/5FSIXXgY    [ raw code | fork ]

Plain Text, pasted on Mar 28:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package symtable;

public class SymbolTableEntry{
  
  public enum Type { INT, BOOL }

  private final Type type;
  private String scope;
  private int offset;
  
  public SymbolTableEntry(Type type, String scope, int offset)  {
    this.type = type;
    this.scope = scope;
    this.offset = offset;
  }

  public Type type() { return type; }
  public int offset() { return offset; }

}



Create a new paste based on this one


Comments: