blob: db15fa7e6bb6517156873b4e0fe778f4bf4f64ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef _GRAMMAR_H_
#define _GRAMMAR_H_
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Rule;
class Grammar {
public:
Grammar(const vector<Rule>& rules, const vector<string>& feature_names);
friend ostream& operator<<(ostream& os, const Grammar& grammar);
private:
vector<Rule> rules;
vector<string> feature_names;
};
#endif
|