]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_parser.C
mathed95.diff
[features.git] / src / mathed / math_parser.C
index 371029d5e70dd97758ca3e8d88fd5dad5817226b..5668ed7bcd6ee6aa8a0b2444e521c9e8c26a4b87 100644 (file)
@@ -233,8 +233,7 @@ int yylex()
        
        while (yyis->good()) {
                unsigned char c = getuchar(yyis);
-               lyxerr << "reading byte: '" << c << "' code: " << lexcode[c] << endl;
-               lyxerr << "              code: " << lexcode['ΓΌ'] << endl;
+               //lyxerr << "reading byte: '" << c << "' code: " << lexcode[c] << endl;
                
                if (yyvarcode == LM_TC_TEXTRM && c == ' ') {
                        yylval.i = ' ';
@@ -831,12 +830,9 @@ void mathed_parse(MathArray & array, unsigned flags)
                case LM_TK_UNDEF: 
                        if (MathMacroTable::hasTemplate(yytext)) {
                                MathMacro * m = MathMacroTable::cloneTemplate(yytext);
-                               for (int i = 0; i < m->nargs(); ++i) {
+                               for (int i = 0; i < m->nargs(); ++i) 
                                        mathed_parse(m->cell(i), FLAG_BRACE_OPT | FLAG_BRACE_LAST);
-                                       lyxerr << "reading cell " << i << " '" << m->cell(i) << "'\n";
-                               }
                                do_insert(array, m);
-                               lyxerr << "macro: " << *m << "\n";
                                m->Metrics(LM_ST_TEXT);
                        } else
                                do_insert(array, new MathFuncInset(yytext, LM_OT_UNDEF));