-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParser.h
More file actions
38 lines (28 loc) · 668 Bytes
/
Parser.h
File metadata and controls
38 lines (28 loc) · 668 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
30
31
32
33
34
35
36
37
38
#ifndef PARSER_H
#define PARSER_H
#include <vector>
#include <map>
#include <string>
using namespace std;
class Parser
{
protected:
map<string, int> Dictionary;
string Sentence;
string finalSentence;
vector<string> Words;
public:
Parser();
Parser(string pathname);
Parser(string pathname, string sentence);
map<string, int> getDictionary();
void printDictionary();
string getSentence();
void setSentence(string Sentence);
void splitSentence(string sentence);
vector<string> getWords();
void filterWords();
static string Filter(string word);
void PopulateDictionary(string pathname);
};
#endif