2011-06-29 11:02:59 +04:00
|
|
|
#ifndef _TEX_PARSER_H
|
|
|
|
#define _TEX_PARSER_H
|
2011-06-07 12:17:19 +04:00
|
|
|
|
2011-06-10 14:31:10 +04:00
|
|
|
#include <sys/types.h>
|
2011-06-07 12:17:19 +04:00
|
|
|
|
2011-06-30 16:38:54 +04:00
|
|
|
#include "zerror.h"
|
|
|
|
//~ #include "tex_table.h"
|
|
|
|
//~ #include "tex_image.h"
|
2011-06-08 15:13:26 +04:00
|
|
|
|
2011-06-23 15:57:47 +04:00
|
|
|
#define MAX_TEX_STACK_LEVEL 128
|
2011-06-30 16:38:54 +04:00
|
|
|
//~
|
|
|
|
//~ struct node_s {
|
|
|
|
//~ enum {
|
|
|
|
//~ TEXOBJ_UNDEF = 0,
|
|
|
|
//~ TEXOBJ_TABLE,
|
|
|
|
//~ TEXOBJ_IMAGE,
|
|
|
|
//~ } type;
|
|
|
|
//~ };
|
|
|
|
//~
|
|
|
|
//~ struct tex_tree_s {
|
|
|
|
//~
|
|
|
|
//~ };
|
2011-06-23 15:57:47 +04:00
|
|
|
|
2011-06-29 11:09:41 +04:00
|
|
|
/* LaTeX parser
|
2011-06-07 12:17:19 +04:00
|
|
|
*/
|
2011-06-30 16:38:54 +04:00
|
|
|
int tex_parse(const char *source, size_t len, struct zerror_s *error);
|
2011-06-07 12:17:19 +04:00
|
|
|
|
2011-06-17 19:03:06 +04:00
|
|
|
#endif
|