31 lines
500 B
C
31 lines
500 B
C
#ifndef _TEX_PARSER_H
|
|
#define _TEX_PARSER_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "tex_parser_table.h"
|
|
#include "tex_parser_graphics.h"
|
|
|
|
#include "zerror.h"
|
|
|
|
#define TEX_PARSER_DOMAIN 0
|
|
|
|
enum {
|
|
TEX_PARSER_NOERROR = 0,
|
|
TEX_PARSER_ERROR_UNKNOWN,
|
|
TEX_PARSER_ERROR_STACK,
|
|
TEX_PARSER_ERROR_PLACE_UNKNOWN,
|
|
TEX_PARSER_ERROR_UNEXPECTED_SYMBOL,
|
|
};
|
|
|
|
struct tex_struct_s {
|
|
void *tables;
|
|
void *graphics;
|
|
};
|
|
|
|
/* LaTeX parser
|
|
*/
|
|
void tex_parse(const char *source, size_t len, struct zerror_s **error);
|
|
|
|
#endif
|