function parseExpression(breakOnInfix, breakOnTokenText) {
              var body = [];
              // Keep adding atoms to the body until we can't parse any more atoms (either
              // we reached the end, a }, or a \right)
              while (true) {
                  var lex = this.nextToken;
                  if (Parser.endOfExpression.indexOf(lex.text) !== -1) {
                      break;
                  }
                  if (breakOnTokenText && lex.text === breakOnTokenText) {
                      break;
                  }
                  if (breakOnInfix && _functions2.default[lex.text] && _functions2.default[lex.text].infix) {
                      break;
                  }
                  var atom = this.parseAtom();
                  if (!atom) {
                      if (!this.settings.throwOnError && lex.text[0] === "\\") {
                          var errorNode = this.handleUnsupportedCmd();
                          body.push(errorNode);
                          continue;
                      }

                      break;
                  }
                  body.push(atom);
              }
              return this.handleInfixNodes(body);
          }
/**
           * Parses an "expression", which is a list of atoms.
           *
           * @param {boolean} breakOnInfix  Should the parsing stop when we hit infix
           *                  nodes? This happens when functions have higher precendence
           *                  than infix nodes in implicit parses.
           *
           * @param {?string} breakOnTokenText  The text of the token that the expression
           *                  should end with, or `null` if something else should end the
           *                  expression.
           *
           * @return {ParseNode}
           */
Parses an "expression", which is a list of atoms.
@param {boolean} breakOnInfix  Should the parsing stop when we hit infix
nodes. This happens when functions have higher precendence
than infix nodes in implicit parses.

@param {?string} breakOnTokenText  The text of the token that the expression
should end with, or `null` if something else should end the
expression.


Parses an " expression " which is a list of atoms . @param { boolean } breakOnInfix Should the parsing stop when we hit infix nodes . This happens when functions have higher precendence than infix nodes in implicit parses . @param { ?string } breakOnTokenText The text of the token that the expression should end with or ` null ` if something else should end the expression .
function parseExpression(breakOnInfix, breakOnTokenText) {
              var body = [];
              while (true) {
                  var lex = this.nextToken;
                  if (Parser.endOfExpression.indexOf(lex.text) !== -1) {
                      break;
                  }
                  if (breakOnTokenText && lex.text === breakOnTokenText) {
                      break;
                  }
                  if (breakOnInfix && _functions2.default[lex.text] && _functions2.default[lex.text].infix) {
                      break;
                  }
                  var atom = this.parseAtom();
                  if (!atom) {
                      if (!this.settings.throwOnError && lex.text[0] === "\\") {
                          var errorNode = this.handleUnsupportedCmd();
                          body.push(errorNode);
                          continue;
                      }
                      break;
                  }
                  body.push(atom);
              }
              return this.handleInfixNodes(body);
          }
function parseExpression ( breakOnInfix , breakOnTokenText ) { var body = [ ] ; while ( true ) { var lex = this . nextToken ; if ( Parser . endOfExpression . indexOf ( lex . text ) !== - 1 ) { break ; } if ( breakOnTokenText && lex . text === breakOnTokenText ) { break ; } if ( breakOnInfix && _functions2 . default [ lex . text ] && _functions2 . default [ lex . text ] . infix ) { break ; } var atom = this . parseAtom ( ) ; if ( ! atom ) { if ( ! this . settings . throwOnError && lex . text [ 0 ] === "\\" ) { var errorNode = this . handleUnsupportedCmd ( ) ; body . push ( errorNode ) ; continue ; } break ; } body . push ( atom ) ; } return this . handleInfixNodes ( body ) ; }
Parses an "expression", which is a list of atoms.
Parses an " expression " which is a list of atoms .
// Keep adding atoms to the body until we can't parse any more atoms (either // we reached the end, a }, or a \right)