KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > parsec > tokens > TokenEof


1 /*****************************************************************************
2  * Copyright (C) Zephyr Business Solutions Corp. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8 /*
9  * Created on 2004-11-7
10  *
11  * Author Ben Yu
12  */

13 package jfun.parsec.tokens;
14
15 /**
16  * Special token to represent end of input.
17  * @author Ben Yu
18  *
19  * 2004-11-7
20  */

21 final class TokenEof implements java.io.Serializable JavaDoc{
22   private static final TokenEof singleton = new TokenEof();
23   private TokenEof(){}
24   public String JavaDoc toString(){return "EOF";}
25   /**
26    * creates a TokenEof instance.
27    * @return the token object.
28    */

29   static TokenEof instance(){return singleton;}
30 }
31
Popular Tags