public final class LaTeXTokeniser
extends java.lang.Object
Tokens.
This is probably the most complex class in SnuggleTeX!
| 限定符和类型 | 类和说明 |
|---|---|
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.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static java.util.Set<java.lang.String> |
reservedCommands
Set of reserved commands.
|
| 构造器和说明 |
|---|
LaTeXTokeniser(SessionContext sessionContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 java.util.Set<java.lang.String> reservedCommands
CorePackageDefinitions.public LaTeXTokeniser(SessionContext sessionContext)
public void reset()
public RootToken tokenise(SnuggleInputReader reader) throws SnuggleParseException, java.io.IOException
SnuggleInputReader, returning an
ArgumentContainerToken containing the roots of the parsed token tree.SnuggleParseExceptionjava.io.IOException