4 * Purpose: Declaration of parsing utilities for mathed
5 * Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
6 * Created: January 1996
7 * Description: Parse LaTeX2e math mode code.
9 * Dependencies: Xlib, XForms
11 * Copyright: 1996, Alejandro Aguilar Sierra
15 * You are free to use and modify this code under the terms of
16 * the GNU General Public Licence version 2 or later.
27 #include "math_defs.h"
36 /// name of the macro or primitive
38 /// name of a inset that handles that macro
40 /// position of the ting in a font
42 /// operator/..., fontname e
44 /// how is this called as XML entity?
49 /// check whether this is a well-known (La)TeX macro or primitive
50 latexkeys const * in_word_set(string const & str);
52 /// parse formula from a string
53 bool mathed_parse_normal(MathAtom &, string const &);
55 bool mathed_parse_normal(MathAtom &, std::istream &);
56 /// ... the LyX lexxer
57 bool mathed_parse_normal(MathAtom &, LyXLex &);
59 /// parse a macro definition from a string, enter it into the macro table
60 bool mathed_parse_macro(string &, string const &);
62 bool mathed_parse_macro(string &, std::istream &);
63 /// ... the LyX lexxer
64 bool mathed_parse_macro(string &, LyXLex &);
66 /// parse a single cell from a string
67 void mathed_parse_cell(MathArray & ar, string const &);
69 void mathed_parse_cell(MathArray & ar, std::istream &);