-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathLGLexer.h.skl
48 lines (41 loc) · 1.09 KB
/
LGLexer.h.skl
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
#pragma once
@("char", "uchar", "short", "ushort", "int", "uint", "char*")
@//
/////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// LGLexer.h
/* Generated by: @program; @version;
Grammar: @grm_file;
Skeleton: @skl_file;
Output: @out_file;
*/
#define ushort unsigned short
#define uchar unsigned char
class LGLexer
{
public:
static Token token;
static int line_numb;
static int col_numb;
static int line_pos;
static char* line_start;
static int max_char_set;
static int tab;
static int get_token ();
static int get_lookahead ();
static void init_lexer ();
static void term_lexer ();
static void prt_line ();
@def_cons?;...
static char* token_name[@def_cons.d;];
@@
@def_cons!;...
static char* token_name[1];
@@
@def_cons?;...
enum tokens
{
@def_cons.1|%s = %d,||\n |;
};
@@
};