blob: 19c3f9b5f31e6ca14c7300e8abc998b02c65b0b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* Code formatter project
* CS 4481
*/
package submit;
import submit.ast.VarType;
/**
*
* @author edwajohn
*/
public class SymbolInfo {
private final String id;
// In the case of a function, type is the return type
private final VarType type;
private final boolean function;
public SymbolInfo(String id, VarType type, boolean function) {
this.id = id;
this.type = type;
this.function = function;
}
@Override
public String toString() {
return "<" + id + ", " + type + '>';
}
}
|