-
Notifications
You must be signed in to change notification settings - Fork 7
/
PGLexer.h
42 lines (33 loc) · 1.15 KB
/
PGLexer.h
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
#ifdef LRSTAR
#pragma once
/////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// PGLexer.h
/* Generated by: DFASTAR 6.5.019
Grammar: PG.lgr
Skeleton: PGLexer.h.skl
Output: PGLexer.h
*/
#define ushort unsigned short
#define uchar unsigned char
class PGLexer
{
public:
static Token token;
static int tab;
static int line_numb;
static int col_numb;
static int line_pos;
static char* line_start;
static int line_start_numb;
static uchar Tm[]; // Terminal transition matrix (gives next state or reduction).
static ushort Tr[]; // Terminal transition matrix row (base).
static uchar Tc[]; // Terminal transition matrix column (displacement).
static char terminal[];// Terminal-symbol number for this node.
static int get_token ();
static int get_lookahead (int&);
static void init_lexer (char*);
static void prt_line ();
static char* token_name[1];
};
#endif