org.extex.interpreter.parser
Interface Parser<TYPE>

Type Parameters:
TYPE - the type for the parser
All Known Implementing Classes:
ConstantCountParser, ConstantDimenParser, ConstantGlueParser, ConstantMudimenParser, ConstantMuskipParser, MathClassParser

public interface Parser<TYPE>

This interface describes a generic parser.

Version:
$Revision: 5632 $
Author:
Gerd Neugebauer

Method Summary
 TYPE parse(Context context, TokenSource source, Typesetter typesetter)
          Parse a value of the given type
 

Method Detail

parse

TYPE parse(Context context,
           TokenSource source,
           Typesetter typesetter)
           throws HelpingException,
                  TypesetterException
Parse a value of the given type

Parameters:
context - the interpreter context
source - the source for new tokens
typesetter - the typesetter
Returns:
the value
Throws:
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter