diff options
Diffstat (limited to 'extractor/grammar.h')
-rw-r--r-- | extractor/grammar.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/extractor/grammar.h b/extractor/grammar.h new file mode 100644 index 00000000..db15fa7e --- /dev/null +++ b/extractor/grammar.h @@ -0,0 +1,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 |