-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
executable file
·52 lines (39 loc) · 900 Bytes
/
index.js
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
52
////////////////////////////////////////////////////////////
// @AUTHOR: Mandeep Bisht
////////////////////////////////////////////////////////////
"use strict";
/*
* require statement
*/
const parser = require("./lib/main");
const { watch } = require("./lib/watch");
const { heading, clear } = require("./util/view");
const { execute } = require("./lib/execute");
/*
* start function will call all other function
*/
function start(args) {
clear();
heading("O.O [spyC]", {
font: "Calvin S",
verticalLayout: "default",
horizontalLayout: "fitted"
});
const parse_result = parser.main(args);
execute(
parse_result.compile_command,
parse_result.exec_command,
parse_result.file_name
);
watch(
parse_result.compile_command,
parse_result.exec_command,
parse_result.file_name
);
}
/*
* exports statement
*/
module.exports = {
start
};