TexParser class
Parser for TeX equations
Convert TeX string to Flutter Math's AST
Constructors
- TexParser(String content, TexParserSettings settings)
Properties
-
argParsingContexts
→ Queue<
ArgumentParsingContext> -
final
- currArgParsingContext → ArgumentParsingContext
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- leftrightDepth ↔ int
-
getter/setter pair
- macroExpander → MacroExpander
-
final
- mode ↔ Mode
-
getter/setter pair
- nextToken ↔ Token?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → TexParserSettings
-
final
Methods
-
consume(
) → void -
consumeSpaces(
) → void -
expect(
String text, {bool consume = true}) → void -
fetch(
) → Token -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
) → EquationRowNode - Get parse result
-
parseArgColor(
{required bool optional}) → Color? -
parseArgHbox(
{required bool optional}) → GreenNode -
parseArgNode(
{required Mode? mode, required bool optional}) → GreenNode? -
parseArgRaw(
{required bool optional}) → String? -
parseArgSize(
{required bool optional}) → Measurement? -
parseArgUrl(
{required bool optional}) → String -
parseAtom(
String? breakOnTokenText) → GreenNode? -
parseExpression(
{bool breakOnInfix = false, String? breakOnTokenText, bool infixArgumentMode = false}) → List< GreenNode> -
parseFunction(
String? breakOnTokenText, String? name, int? greediness) → GreenNode? - Parses an entire function, including its base and all of its arguments.
-
parseGroup(
String name, {required bool optional, int? greediness, String? breakOnTokenText, Mode? mode, bool consumeSpaces = false}) → GreenNode? - parseGroup Return a row if encounters [] or {}. Returns single function node or a single symbol otherwise.
-
parseScripts(
{bool allowLimits = false}) → ScriptsParsingResults - The following functions are separated from parseAtoms in KaTeX This function will only be invoked in math mode
-
switchMode(
Mode newMode) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
breakTokens
→ const Set<
String> -
endOfExpression
→ const Set<
String> -
endOfGroup
→ const Map<
String, String> - supsubGreediness → const int