| 99 | } |
| 100 | |
| 101 | void TeXParser::reset(const wstring& latex) { |
| 102 | _parseString = latex; |
| 103 | _len = latex.length(); |
| 104 | _formula->_root = nullptr; |
| 105 | _pos = 0; |
| 106 | _spos = 0; |
| 107 | _line = 0; |
| 108 | _col = 0; |
| 109 | _group = 0; |
| 110 | _insertion = false; |
| 111 | _atIsLetter = 0; |
| 112 | _arrayMode = false; |
| 113 | _ignoreWhiteSpace = true; |
| 114 | firstpass(); |
| 115 | } |
| 116 | |
| 117 | sptr<Atom> TeXParser::popLastAtom() { |
| 118 | auto a = _formula->_root; |