-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
51 lines (40 loc) · 1.14 KB
/
config.h
File metadata and controls
51 lines (40 loc) · 1.14 KB
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
50
51
#ifndef CONFIG_H
#define CONFIG_H
/* User Settings */
// parser
#define LINE_BUFFER_SIZE 10240
// definition item defaults
#define TM_DEFAULT_B '_'
#define TM_DEFAULT_q "init"
#define TM_DEFAULT_F "halt"
// definition syntax
#define COMMENT_MARK ';'
#define WILDCARD_MARK '*'
#define ITEM_SEPERATOR ','
// TM hardware limits
#define LIMIT_ENABLE true
#define LIMIT_TIME 3000
#define LIMIT_SPACE 100
// file devices
#define DEFINITION_FILENAME "test.tm"
#define INPUT_FILENAME "input.txt"
#define OUTPUT_FILENAME "result.txt"
#define DEBUG_FILENAME "console.txt"
// runtime cmdopts defaults
#define OPT_DEFAULT_LOGLEVEL SIMPLE
#define OPT_DEFAULT_SAVE true
// console print typesettings
#define BANNER_WIDTH 78
#define BANNER_SECTOR '='
#define BANNER_SEPERATOR '-'
/* OS Specifics */
#ifdef _WIN32
#define PATH_SEPERATOR '\\'
#define NULL_DEVICE "NUL"
#elif defined(__linux__) || defined(__unix__)
#define PATH_SEPERATOR '/'
#define NULL_DEVICE "/dev/null"
#endif
/* Internal Debug */
// #define DEBUG_PARSER
#endif // CONFIG_H