summaryrefslogtreecommitdiff
path: root/do.pl
blob: d7a74841ea40ac211abfbb41fd6ae8dcf04a2004 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/usr/bin/env -S perl -i -p
# next if /^ *;/; s/\b(?<!-)if\b(?!-)/if-raw whsp1/g;
# next if /^ *;/; s/\b(?<!-)then\b(?!-)/then-raw whsp1/g;
# next if /^ *;/; s/\b(?<!-)else\b(?!-)/else-raw whsp1/g;
# next if /^ *;/; s/\b(?<!-)let\b(?!-)/let-raw whsp1/g;
# next if /^ *;/; s/\b(?<!-)in\b(?!-)/in-raw whsp1/g;
# next if /^ *;/; s/\b(?<!-)as\b(?!-)/as-raw whsp1/g;
# next if /^ *;/; s/\b(?<!-)using\b(?!-)/using-raw whsp1/g;
# next if /^ *;/; s/\b(?<!-)merge\b(?!-)/merge-raw whsp1/g;
# next if /^ *;/; s/\b(?<!-)Some\b(?!-)/Some-raw whsp1/g;

# next if /^ *;/; s/\b(?<!-)Optional\b(?!-)/Optional whsp/g;
# next if /^ *;/; s/\b(?<!-)Text\b(?!-)/Text whsp/g;
# next if /^ *;/; s/\b(?<!-)List\b(?!-)/List whsp/g;

# next if /^ *;/; s/\b(?<!-)or\b(?!-)/"||" whsp/g;
# next if /^ *;/; s/\b(?<!-)plus\b(?!-)/"+" whsp1/g;
# next if /^ *;/; s/\b(?<!-)text-append\b(?!-)/"++" whsp/g;
# next if /^ *;/; s/\b(?<!-)list-append\b(?!-)/"#" whsp/g;
# next if /^ *;/; s/\b(?<!-)and\b(?!-)/"&&" whsp/g;
# next if /^ *;/; s/\b(?<!-)times\b(?!-)/"*" whsp/g;
# next if /^ *;/; s/\b(?<!-)double-equal\b(?!-)/"==" whsp/g;
# next if /^ *;/; s/\b(?<!-)not-equal\b(?!-)/"!=" whsp/g;
# next if /^ *;/; s/\b(?<!-)equal\b(?!-)/"=" whsp/g;
# next if /^ *;/; s/\b(?<!-)dot\b(?!-)/"." whsp/g;
# next if /^ *;/; s/\b(?<!-)bar\b(?!-)/"|" whsp/g;
# next if /^ *;/; s/\b(?<!-)comma\b(?!-)/"," whsp/g;
# next if /^ *;/; s/\b(?<!-)at\b(?!-)/"@" whsp/g;
# next if /^ *;/; s/\b(?<!-)open-parens\b(?!-)/"(" whsp/g;
# next if /^ *;/; s/\b(?<!-)close-parens\b(?!-)/")" whsp/g;
# next if /^ *;/; s/\b(?<!-)open-brace\b(?!-)/"{" whsp/g;
# next if /^ *;/; s/\b(?<!-)close-brace\b(?!-)/"}" whsp/g;
# next if /^ *;/; s/\b(?<!-)open-bracket\b(?!-)/"[" whsp/g;
# next if /^ *;/; s/\b(?<!-)close-bracket\b(?!-)/"]" whsp/g;
# next if /^ *;/; s/\b(?<!-)open-angle\b(?!-)/"<" whsp/g;
# next if /^ *;/; s/\b(?<!-)close-angle\b(?!-)/">" whsp/g;
# next if /^ *;/; s/\b(?<!-)colon\b(?!-)/":" whsp1/g;
# next if /^ *;/; s/\b(?<!-)import-alt\b(?!-)/"?" whsp1/g;

# next if /^ *;/; s/\b(?<!-)combine-types\b(?!-)/combine-types whsp/g;
# next if /^ *;/; s/\b(?<!-)combine\b(?!-)/combine whsp/g;
# next if /^ *;/; s/\b(?<!-)prefer\b(?!-)/prefer whsp/g;
# next if /^ *;/; s/\b(?<!-)lambda\b(?!-)/lambda whsp/g;
# next if /^ *;/; s/\b(?<!-)forall\b(?!-)/forall whsp/g;
# next if /^ *;/; s/\b(?<!-)arrow\b(?!-)/arrow whsp/g;

# next if /^ *;/; s/\b(?<!-)label\b(?!-)/label whsp/g;
# next if /^ *;/; s/\b(?<!-)identifier\b(?!-)/identifier whsp/g;
# next if /^ *;/; s/\b(?<!-)text-literal\b(?!-)/text-literal whsp/g;
# next if /^ *;/; s/\b(?<!-)double-literal\b(?!-)/double-literal whsp/g;
# next if /^ *;/; s/\b(?<!-)integer-literal\b(?!-)/integer-literal whsp/g;
# next if /^ *;/; s/\b(?<!-)natural-literal\b(?!-)/natural-literal whsp/g;

# next if /^ *;/; s/\b(?<!-)import-hashed\b(?!-)/import-hashed whsp/g;
# next if /^ *;/; s/\b(?<!-)import-type\b(?!-)/import-type whsp/g;
# next if /^ *;/; s/\b(?<!-)import\b(?!-)/import whsp/g;
# next if /^ *;/; s/\b(?<!-)local\b(?!-)/local whsp/g;
# next if /^ *;/; s/\b(?<!-)env\b(?!-)/env whsp/g;
# next if /^ *;/; s/\b(?<!-)http\b(?!-)/http whsp/g;
# next if /^ *;/; s/\b(?<!-)missing\b(?!-)/missing whsp/g;

# next if /^ *;/; s/\b(?<!-)labels\b(?!-)/labels whsp/g;
# next if /^ *;/; s/\b(?<!-)record-type-or-literal\b(?!-)/record-type-or-literal whsp/g;
# next if /^ *;/; s/\b(?<!-)non-empty-record-type-or-literal\b(?!-)/non-empty-record-type-or-literal whsp/g;
# next if /^ *;/; s/\b(?<!-)non-empty-record-type\b(?!-)/non-empty-record-type whsp/g;
# next if /^ *;/; s/\b(?<!-)non-empty-record-literal\b(?!-)/non-empty-record-literal whsp/g;
# next if /^ *;/; s/\b(?<!-)union-type-or-literal\b(?!-)/union-type-or-literal whsp/g;
# next if /^ *;/; s/\b(?<!-)non-empty-union-type-or-literal\b(?!-)/non-empty-union-type-or-literal whsp/g;
# next if /^ *;/; s/\b(?<!-)non-empty-list-literal\b(?!-)/non-empty-list-literal whsp/g;
#
# next if /^ *;/; s/\b(?<!-)expression\b(?!-)/expression whsp/g;
# next if /^ *;/; s/\b(?<!-)lambda-expression\b(?!-)/lambda-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)ifthenelse-expression\b(?!-)/ifthenelse-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)let-expression\b(?!-)/let-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)forall-expression\b(?!-)/forall-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)arrow-expression\b(?!-)/arrow-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)merge-expression\b(?!-)/merge-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)annotated-expression\b(?!-)/annotated-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)empty-list-or-optional\b(?!-)/empty-list-or-optional whsp/g;
# next if /^ *;/; s/\b(?<!-)empty-collection\b(?!-)/empty-collection whsp/g;
# next if /^ *;/; s/\b(?<!-)non-empty-optional\b(?!-)/non-empty-optional whsp/g;
# next if /^ *;/; s/\b(?<!-)operator-expression\b(?!-)/operator-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)import-alt-expression\b(?!-)/import-alt-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)or-expression\b(?!-)/or-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)plus-expression\b(?!-)/plus-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)text-append-expression\b(?!-)/text-append-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)list-append-expression\b(?!-)/list-append-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)and-expression\b(?!-)/and-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)combine-expression\b(?!-)/combine-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)prefer-expression\b(?!-)/prefer-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)combine-types-expression\b(?!-)/combine-types-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)times-expression\b(?!-)/times-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)equal-expression\b(?!-)/equal-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)not-equal-expression\b(?!-)/not-equal-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)application-expression\b(?!-)/application-expression whsp/g;
#
# next if /^ *;/; s/\b(?<!-)import-expression\b(?!-)/import-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)selector-expression\b(?!-)/selector-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)primitive-expression\b(?!-)/primitive-expression whsp/g;
# next if /^ *;/; s/\b(?<!-)complete-expression\b(?!-)/complete-expression whsp/g;

# next if /^ *;/; s/\b(?<!-)whitespace\b(?!-)/whsp/g;
# next if /^ *;/; s/\b(?<!-)nonempty-whitespace\b(?!-)/whsp1/g;