-
Notifications
You must be signed in to change notification settings - Fork 7
/
LGComputeLA.h
37 lines (30 loc) · 951 Bytes
/
LGComputeLA.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
#pragma once
#include "LGAddExtra.h"
class LGComputeLA : public LGAddExtra
{
public:
static int c_states;
static int* D_red;
static int* la_start;
static int* la_end;
static int* la_symb;
static int* la_red;
static int n_lookbacks;
static int n_lookah;
static int n_includes;
static int ComputeLA ();
private:
static void ANALYZE (int& nc, int s, int f);
static void IND_READ (int i, int s);
static void LOOK_BACK (int x, int p, int dot, int s);
static int NTX (int s, int h);
static void C_INCLUDE (int s, int y);
static void C_LALR ();
static void C_LOOKBACKS ();
static void C_READS ();
static void PRT_STA (int s);
static int p_sym (int s, char *sp);
static void p_prod (int p, int dot, char *before);
static void prt_rrcon (int& nc, int s, int t);
static void prt_srcon (int& nc, int s, int t, int p);
};