parse method

EquationRowNode parse()

Get parse result

Implementation

EquationRowNode parse() {
  if (!this.settings.globalGroup) {
    this.macroExpander.beginGroup();
  }
  if (this.settings.colorIsTextColor) {
    this
        .macroExpander
        .macros
        .set('\\color', MacroDefinition.fromString('\\textcolor'));
  }
  final parse = this.parseExpression(breakOnInfix: false);

  this.expect('EOF');

  if (!this.settings.globalGroup) {
    this.macroExpander.endGroup();
  }
  return parse.wrapWithEquationRow();
}