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 StringLiteral extends Literal {
7   String val;
8   StringLiteral(String s) {
9     this.val = s;
10   }
11
12   Symbol token() {
13     return new Symbol(Sym.STRING_LITERAL, val);
14   }
15
16   public String toString() {
17     return "StringLiteral <"+Token.escape(val)+">";
18   }
19 }