-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTerminates.H
More file actions
30 lines (27 loc) · 772 Bytes
/
Terminates.H
File metadata and controls
30 lines (27 loc) · 772 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
/****************************************************************
Terminates.H
Copyright (C)2013 William H. Majoros (martiandna@gmail.com).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#ifndef INCL_Terminates_H
#define INCL_Terminates_H
#include <iostream>
#include "SCFG.H"
#include "DerivesEpsilon.H"
using namespace std;
using namespace BOOM;
class Terminates {
SCFG &G;
GrammarAlphabet &nonterminals;
ProductionSet &productions;
HashMap<GrammarSymbol,bool> *table;
void init();
bool iterate();
public:
Terminates(SCFG &);
~Terminates();
bool operator[](GrammarSymbol *);
void dump();
};
#endif