This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] /
1 package Lex;
2
3 import java_cup.runtime.Symbol;
4
5 class CharacterLiteral extends Literal {
6   Character val;
7   CharacterLiteral(char c) { this.val = new Character(c); }
8
9   Symbol token() { return new Symbol(Sym.CHARACTER_LITERAL, val); }
10
11   public String toString() { 
12     return "CharacterLiteral <"+Token.escape(val.toString())+">"; 
13   }
14 }