File: saml-parse.h

package info (click to toggle)
saml 970418-9
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,188 kB
  • ctags: 1,703
  • sloc: ansic: 17,186; sh: 2,573; yacc: 497; perl: 264; makefile: 242; python: 242
file content (34 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright 1996 Thierry Bousch
 * Licensed under the Gnu Public License, Version 2
 *
 * $Id: saml-parse.h,v 1.2 1996/09/15 16:02:39 bousch Exp $
 *
 * Definitions, prototypes and data structures for the default parser
 */

#ifndef _SAML_PARSE_H
#define _SAML_PARSE_H

/* We need this for the FILE structure */
#include <stdio.h>

/* Non-character token types */
#define STOK_EOF	0
#define STOK_INTEGER	258
#define STOK_LITERAL	259

/*
 * It the last token was not a simple character, saml_token should
 * contain the whole token (null-terminated). The parser will not free
 * this space, so the lexer is responsible for reusing the space.
 */
extern char *saml_token;

/* The address of the lexer */
extern int (*saml_lexer)(void);

void saml_init_lexer_fd (FILE *fd);
void saml_init_lexer_mem (const void *start, size_t length);

#endif	/* _SAML_PARSE_H */