qse/ase/lsp/token.h

48 lines
942 B
C
Raw Normal View History

2005-02-04 15:39:11 +00:00
/*
2006-10-22 13:10:46 +00:00
* $Id: token.h,v 1.12 2006-10-22 13:10:46 bacon Exp $
2005-02-04 15:39:11 +00:00
*/
2006-10-22 13:10:46 +00:00
#ifndef _SSE_LSP_TOKEN_H_
#define _SSE_LSP_TOKEN_H_
2005-02-04 15:39:11 +00:00
2006-10-22 13:10:46 +00:00
#include <sse/lsp/types.h>
#include <sse/lsp/name.h>
2005-02-04 15:39:11 +00:00
2005-09-18 08:10:50 +00:00
enum
2005-02-04 15:39:11 +00:00
{
2006-10-22 13:10:46 +00:00
SSE_LSP_TOKEN_END
2005-09-18 08:10:50 +00:00
};
2006-10-22 13:10:46 +00:00
struct sse_lsp_token_t
2005-09-18 08:10:50 +00:00
{
int type;
2005-02-04 15:39:11 +00:00
2006-10-22 13:10:46 +00:00
sse_lsp_int_t ivalue;
sse_lsp_real_t rvalue;
2005-02-04 15:39:11 +00:00
2006-10-22 13:10:46 +00:00
sse_lsp_name_t name;
sse_bool_t __dynamic;
2005-02-04 15:39:11 +00:00
};
2006-10-22 13:10:46 +00:00
typedef struct sse_lsp_token_t sse_lsp_token_t;
2005-02-04 15:39:11 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2006-10-22 13:10:46 +00:00
sse_lsp_token_t* sse_lsp_token_open (
sse_lsp_token_t* token, sse_word_t capacity);
void sse_lsp_token_close (sse_lsp_token_t* token);
2005-09-18 08:10:50 +00:00
2006-10-22 13:10:46 +00:00
int sse_lsp_token_addc (sse_lsp_token_t* token, sse_cint_t c);
int sse_lsp_token_adds (sse_lsp_token_t* token, const sse_char_t* s);
void sse_lsp_token_clear (sse_lsp_token_t* token);
sse_char_t* sse_lsp_token_yield (sse_lsp_token_t* token, sse_word_t capacity);
int sse_lsp_token_compare_name (sse_lsp_token_t* token, const sse_char_t* str);
2005-02-04 15:39:11 +00:00
#ifdef __cplusplus
}
#endif
#endif