[go: up one dir, main page]

Menu

[897c37]: / lpc / lexer.h  Maximize  Restore  History

Download this file

56 lines (43 with data), 916 Bytes

 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
** $Id: lexer.h,v 1.2 2008/12/18 03:52:25 dredd Exp $
**
** $Source: /cvsroot/swlpc/swlpc/lpc/lexer.h,v $
** $Revision: 1.2 $
** $Date: 2008/12/18 03:52:25 $
** $State: Exp $
**
** Author: Mike McGaughey & Geoff Wong
** geoff.wong@gmail.com
**
** See the file "Copying" distributed with this file.
**
** Lexical analyser uses different strings;
** they're designed to add together easily;
** ie write("balh"+"blah"); will automatically be
** converted to write("balhblah");
*/
#ifndef _LEXER_H
#define _LEXER_H
#include "stralloc.h"
/* Lexer string definitions */
struct lexical_string
{
char * s;
short length;
};
typedef struct lexical_string lexar;
Shared
* to_Cstring(lexar * s)
;
char
* to_str(lexar * s)
;
struct lexical_string
* lex_str_copy(char *)
;
void
init_lex_space(void),
free_lex_space(void),
lex_strcat(lexar * a, lexar * b)
;
#endif