-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (21 loc) · 932 Bytes
/
Makefile
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
.PHONY: build convert_dfa_regex_to_string create_scanner_dfa clean create_jlalr_dfa convert_jlalr_output_format_to_dfa run_marmoset_tests
default: build convert_dfa_regex_to_string create_scanner_dfa create_jlalr_dfa convert_jlalr_output_format_to_dfa
build:
mkdir -p gen
chmod +x joosc
kotlinc src/main/* -include-runtime -d gen/oj.jar
mkdir -p gen/jlalr
javac jlalr/Jlalr1.java -d gen/jlalr
convert_dfa_regex_to_string:
java -cp gen/oj.jar oj.scripts.ConvertDFARegexToStringKt
create_scanner_dfa:
java -cp gen/oj.jar oj.scripts.CreateScannerDFAKt
create_jlalr_dfa:
java -cp gen/oj.jar oj.scripts.ConvertCFGToJLALRInputFormatKt
java -cp gen/jlalr jlalr.Jlr1 < gen/joos-jlalr-input-format.cfg > gen/joos-jlalr-lr1-output.dfa
convert_jlalr_output_format_to_dfa:
java -cp gen/oj.jar oj.scripts.ConvertJLALROutputFormatToDFAKt
run_marmoset_tests:
java -cp gen/oj.jar oj.scripts.RunMarmosetTestsKt
clean:
rm -rf gen