| Modifier and Type | Class and Description |
|---|---|
static class |
LaTeXTokeniser.ModeState
Trivial "struct" encapsulating information about the state of a tokenisation mode.
|
static class |
LaTeXTokeniser.PatternTerminator
This implementation of
Terminator represents terminators specified as regular
expressions. |
static class |
LaTeXTokeniser.StringTerminator
This implementation of
Terminator is used to handle fixed Strings as
terminators. |
static interface |
LaTeXTokeniser.Terminator
Represents the "terminator" characters that signify the end of a parsing mode.
|
static class |
LaTeXTokeniser.TokenisationMode
Enumeration of the various "tokenisation modes" we will be running in.
|
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
reservedCommands
Set of reserved commands.
|
| Constructor and Description |
|---|
LaTeXTokeniser(SessionContext sessionContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Resets the parsing state of this tokeniser.
|
RootToken |
tokenise(SnuggleInputReader reader)
Tokenises the input specified by the given
SnuggleInputReader, returning an
ArgumentContainerToken containing the roots of the parsed token tree. |
public static final Set<String> reservedCommands
CorePackageDefinitions.public LaTeXTokeniser(SessionContext sessionContext)
public void reset()
public RootToken tokenise(SnuggleInputReader reader) throws SnuggleParseException, IOException
SnuggleInputReader, returning an
ArgumentContainerToken containing the roots of the parsed token tree.SnuggleParseExceptionIOExceptionCopyright © 2008–2026 The University of Edinburgh. All rights reserved.