![]() ![]() | ![]() |
version 1.84, 2011/07/21 12:30:44 | version 1.86, 2011/07/21 13:37:04 | ||
---|---|---|---|
|
|
||
EQN_SUBEXPR /* nested subexpression */ | EQN_SUBEXPR /* nested subexpression */ | ||
}; | }; | ||
/* | enum eqn_markt { | ||
EQNMARK_NONE = 0, | |||
EQNMARK_DOT, | |||
EQNMARK_DOTDOT, | |||
EQNMARK_HAT, | |||
EQNMARK_TILDE, | |||
EQNMARK_VEC, | |||
EQNMARK_DYAD, | |||
EQNMARK_BAR, | |||
EQNMARK_UNDER, | |||
EQNMARK__MAX | |||
}; | |||
enum eqn_fontt { | |||
EQNFONT_NONE = 0, | |||
EQNFONT_ROMAN, | |||
EQNFONT_BOLD, | |||
EQNFONT_ITALIC, | |||
EQNFONT__MAX | |||
}; | |||
/* | |||
* A "box" is a parsed mathematical expression as defined by the eqn.7 | * A "box" is a parsed mathematical expression as defined by the eqn.7 | ||
* grammar. | * grammar. | ||
*/ | */ | ||
|
|
||
struct eqn_box *child; /* child node */ | struct eqn_box *child; /* child node */ | ||
struct eqn_box *next; /* next in tree */ | struct eqn_box *next; /* next in tree */ | ||
char *text; /* text (or NULL) */ | char *text; /* text (or NULL) */ | ||
enum eqn_markt mark; /* a mark about the box */ | |||
enum eqn_fontt font; /* font of box */ | |||
}; | }; | ||
struct eqn { | struct eqn { |