//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
// PLEASE DO NOT EDIT WITHOUT THE EXPLICIT CONSENT OF THE AUTHOR! \\
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
using System.IO;
namespace Ilog.Language.Parsing
{
/**
* This abstract class defines some of the information needed to
* complete the implementation of a tokenizer.
*
* @see Tokenizer
*
* @version Last modified on Sun May 29 20:14:39 2005 by hak
* @author Hassan Aït-Kaci
* @copyright © 2000 ILOG, S.A.
*/
public abstract class AbstractTokenizer : Tokenizer
{
public abstract ParseNode NextToken ();
public abstract TextReader GetReader ();
public abstract void SetReader (TextReader reader);
public abstract int LineNumber { get; }
/**
* Returns a description of where this tokenizer is at.
* This method may be overriden. Defaults to an indication
* of the line number.
*/
public virtual string Location ()
{
return "line " + LineNumber;
}
}
}