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
parse
TYPE parse(Context context,
TokenSource source,
Typesetter typesetter)
throws HelpingException,
TypesetterException
- Parse a value of the given type
- Parameters:
context - the interpreter contextsource - the source for new tokenstypesetter - the typesetter
- Returns:
- the value
- Throws:
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetter