Subversion Repositories tendra.SVN

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
#ifndef LEX_INCLUDED
32
#define LEX_INCLUDED
33
 
34
 
35
/*
36
    DECLARATIONS FOR LEXICAL ANALYSIS ROUTINES
37
*/
38
 
39
extern void process_file PROTO_S ( ( char * ) ) ;
40
extern int read_token PROTO_S ( ( void ) ) ;
41
extern char token_buff [] ;
42
extern int crt_lex_token ;
43
extern int saved_lex_token ;
44
extern char *first_comment ;
45
 
46
 
47
/*
48
     PARSER MACROS
49
*/
50
 
51
#define CURRENT_TERMINAL	crt_lex_token
52
#define ADVANCE_LEXER		crt_lex_token = read_token ()
53
#define SAVE_LEXER( T )         ( saved_lex_token = crt_lex_token,\
54
                                  crt_lex_token = ( T ) )
55
#define RESTORE_LEXER           ( crt_lex_token = saved_lex_token )
56
 
57
 
58
#endif