This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] /
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) {
9     this.val = new Boolean(b);
10   }
11
12   Symbol token() {
13     return new Symbol(Sym.BOOLEAN_LITERAL, val);
14   }
15
16   public String toString() {
17     return "BooleanLiteral <"+val.toString()+">";
18   }
19 }