-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.h
49 lines (41 loc) · 1.04 KB
/
constants.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
43
44
45
46
47
48
49
#include <fstream>
#include <streambuf>
#include <string>
#include <cerrno>
#include <iostream>
#include <vector>
#include <algorithm>
#include <stack>
#include <unordered_set>
#include <unordered_map>
#include <boost/regex.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/program_options.hpp>
// #define DEBUG 0
#define COMMENT "%"
#define PAREN_OPEN "("
#define PAREN_CLOSE ")"
#define COMMA ","
#define COLON_DASH ":-"
#define DOT "."
#define DOTCHAR '.'
#define WHITESPACE "\t \n"
#define HASHTAG "#"
#define NEWLINE "\n"
#define OUTPUT_EXTN ".cl\0"
#define HIDE "#hide"
#define ABS "#abs"
#define SUM "#sum"
#define PIPE "|"
// Constants for incremental parts of the program
#define QUERY "query"
#define IBASE "#base"
#define ICUMULATIVE "#cumulative"
#define IVOLATILE "#volatile"
#define PRGBASE "#program base"
#define PRGCUMULATIVE "#program step"
#define PRGVOLATILE "#program check"
#define PRGQUERY "query"
namespace ba = boost::algorithm;