forked from chandrasekharanil/Assignment-2-Group-4-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha.h
42 lines (31 loc) · 991 Bytes
/
a.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
37
38
39
40
41
42
#pragma once
#include <string>
#include <vector>
#include <cmath>
#include <cctype>
#include <stdexcept>
#include "exceptionhelper.h"
#include "stringhelper.h"
namespace iProlog
{
/// <summary>
/// Reads chars from char streams using the current default encoding
/// </summary>
class Toks : public StreamTokenizer
{
// reserved words - with syntactic function
public:
static std::wstring IF;
static std::wstring AND;
static std::wstring DOT;
static std::wstring HOLDS;
static std::wstring LISTS; // todo
static std::wstring IS; // todo
static Toks *makeToks(const std::wstring &s, bool const fromFile);
Toks(Reader *const reader);
virtual std::wstring getWord();
static std::vector<std::vector<std::vector<std::wstring>>> toSentences(const std::wstring &s, bool const fromFile);
static std::wstring toString(std::vector<void*> &Wsss);
static void main(std::vector<std::wstring> &args);
};
}