add more comments
[IRC.git] / Robust / src / Lex / BooleanLiteral.java
1 package Lex;
2
3 import java_cup.runtime.Symbol;
4 import Parse.Sym;
5
6 class BooleanLiteral extends Literal {
7   Boolean val;
8   BooleanLiteral(boolean b) { this.val = new Boolean(b); }
9
10   Symbol token() { return new Symbol(Sym.BOOLEAN_LITERAL, val); }
11
12   public String toString() { return "BooleanLiteral <"+val.toString()+">"; }
13 }