public final class TokenFixer extends Object
StyleEvaluator has run and performs grouping operations
on the FlowTokens to convert them to a more tree-like structure that is easier to handle.
Once this has run, all BraceContainerToken tokens present in PARAGRAPH mode will have
been unwrapped or flattened. They are however kept in MATH and LR mode as they can be used for
implicit brackets. (Unwinding of redundantly nested containers is done in all cases, though.)
Many other types of tokens, such as the "new paragraph" or "new list item" token will have been removed, with the surrounding content grouped accordingly.
LaTeXTokeniser,
StyleEvaluator,
StyleRebuilder,
SnuggleSession.parseInput(uk.ac.ed.ph.snuggletex.SnuggleInput)| Constructor and Description |
|---|
TokenFixer(SessionContext sessionContext) |
public TokenFixer(SessionContext sessionContext)
public void fixTokenTree(RootToken rootToken) throws SnuggleParseException
SnuggleParseExceptionCopyright © 2008–2026 The University of Edinburgh. All rights reserved.