qse/ase/stx/parser.h

33 lines
599 B
C
Raw Normal View History

2005-05-12 15:51:20 +00:00
/*
2005-05-22 15:03:20 +00:00
* $Id: parser.h,v 1.3 2005-05-22 15:03:20 bacon Exp $
2005-05-12 15:51:20 +00:00
*/
#ifndef _XP_STX_PARSER_H_
#define _XP_STX_PARSER_H_
2005-05-22 04:11:54 +00:00
#include <xp/stx/stx.h>
2005-05-22 15:03:20 +00:00
#include <xp/stx/scanner.h>
2005-05-22 04:11:54 +00:00
struct xp_stx_parser_t
{
xp_bool_t __malloced;
};
typedef struct xp_stx_parser_t xp_stx_parser_t;
2005-05-12 15:51:20 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2005-05-22 04:11:54 +00:00
xp_stx_parser_t* xp_stx_parser_open (xp_stx_parser_t* parser);
2005-05-22 15:03:20 +00:00
void xp_stx_parser_close (xp_stx_parser_t* parser);
2005-05-22 04:11:54 +00:00
int xp_stx_parser_parse (xp_stx_parser_t* parser, const xp_char_t* text);
2005-05-12 15:51:20 +00:00
2005-05-22 15:03:20 +00:00
int xp_stx_filein_raw (xp_stx_t* parser, xp_stx_getc_t getc);
2005-05-12 15:51:20 +00:00
#ifdef __cplusplus
}
#endif
#endif