Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 7520d13

Browse files
committed
refactor
1 parent 76825ad commit 7520d13

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

common/precedences.ts

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
11
export enum Prec {
2-
SubtractionType = 'SubtractionType',
3-
Type = 'Type',
4-
UnionType = 'UnionType',
2+
Access = 'Access',
3+
And = 'And',
4+
Application = 'Application',
5+
Assignment = 'Assignment',
6+
Biconditional = 'Biconditional',
57
CurriedOrIntersectionType = 'CurriedOrIntersectionType',
8+
Equality = 'Equality',
9+
Exponentiation = 'Exponentiation',
10+
Identifier = 'Identifier',
11+
Implication = 'Implication',
12+
InfixApplication = 'InfixApplication',
613
LabeledType = 'LabeledType',
7-
OptionalType = 'OptionalType',
8-
TaggedType = 'TaggedType',
9-
14+
Mod = 'Mod',
1015
NamedInfixApplication = 'NamedInfixApplication',
16+
Not = 'Not',
1117
OperatorInfixApplication = 'OperatorInfixApplication',
12-
Biconditional = 'Biconditional',
13-
Implication = 'Implication',
18+
OptionalType = 'OptionalType',
1419
Or = 'Or',
15-
And = 'And',
16-
Equality = 'Equality',
1720
Order = 'Order',
18-
Mod = 'Mod',
19-
Sum = 'Sum',
20-
Product = 'Product',
21-
Exponentiation = 'Exponentiation',
22-
Not = 'Not',
21+
PatternOrTerm = 'PatternOrTerm',
2322
Pipeline = 'Pipeline',
24-
25-
Identifier = 'Identifier',
23+
PrefixApplication = 'PrefixApplication',
24+
Product = 'Product',
2625
SectionIdentifier = 'SectionIdentifier',
27-
TypeHint = 'TypeHint',
26+
SubtractionType = 'SubtractionType',
27+
Sum = 'Sum',
28+
TaggedType = 'TaggedType',
2829
TaggedValue = 'TaggedValue',
29-
Assignment = 'Assignment',
30-
InfixApplication = 'InfixApplication',
31-
PrefixApplication = 'PrefixApplication',
32-
Application = 'Application',
33-
PatternOrTerm = 'PatternOrTerm',
34-
Access = 'Access',
30+
Type = 'Type',
31+
TypeHint = 'TypeHint',
32+
UnionType = 'UnionType',
3533
}
3634

3735
const typePrecedences = [

0 commit comments

Comments
 (0)