Mercurial > hg > Members > kono > PLparser
comparison src/plparser/Token.java @ 0:b0dee5b76b12
Scanner worked.
author | kono@ie.u-ryukyu.ac.jp |
---|---|
date | Sat, 28 Aug 2010 16:07:00 +0900 |
parents | |
children | b149a5aa465a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b0dee5b76b12 |
---|---|
1 package plparser; | |
2 | |
3 | |
4 public class Token<Node> { | |
5 String name; | |
6 TokenID type; | |
7 | |
8 | |
9 | |
10 public Token(String name, TokenID type) { | |
11 this.name = name; this.type = type; | |
12 } | |
13 | |
14 | |
15 public String toString() { | |
16 return "Token("+name+","+type+")"; | |
17 } | |
18 | |
19 } |