From 7520d133df946672145efc0101cf80f38eaf5cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=BCbotter?= Date: Sun, 14 Mar 2021 20:36:37 +0100 Subject: [PATCH] refactor --- common/precedences.ts | 46 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/common/precedences.ts b/common/precedences.ts index d7d95bc9..ac9f841a 100644 --- a/common/precedences.ts +++ b/common/precedences.ts @@ -1,37 +1,35 @@ export enum Prec { - SubtractionType = 'SubtractionType', - Type = 'Type', - UnionType = 'UnionType', + Access = 'Access', + And = 'And', + Application = 'Application', + Assignment = 'Assignment', + Biconditional = 'Biconditional', CurriedOrIntersectionType = 'CurriedOrIntersectionType', + Equality = 'Equality', + Exponentiation = 'Exponentiation', + Identifier = 'Identifier', + Implication = 'Implication', + InfixApplication = 'InfixApplication', LabeledType = 'LabeledType', - OptionalType = 'OptionalType', - TaggedType = 'TaggedType', - + Mod = 'Mod', NamedInfixApplication = 'NamedInfixApplication', + Not = 'Not', OperatorInfixApplication = 'OperatorInfixApplication', - Biconditional = 'Biconditional', - Implication = 'Implication', + OptionalType = 'OptionalType', Or = 'Or', - And = 'And', - Equality = 'Equality', Order = 'Order', - Mod = 'Mod', - Sum = 'Sum', - Product = 'Product', - Exponentiation = 'Exponentiation', - Not = 'Not', + PatternOrTerm = 'PatternOrTerm', Pipeline = 'Pipeline', - - Identifier = 'Identifier', + PrefixApplication = 'PrefixApplication', + Product = 'Product', SectionIdentifier = 'SectionIdentifier', - TypeHint = 'TypeHint', + SubtractionType = 'SubtractionType', + Sum = 'Sum', + TaggedType = 'TaggedType', TaggedValue = 'TaggedValue', - Assignment = 'Assignment', - InfixApplication = 'InfixApplication', - PrefixApplication = 'PrefixApplication', - Application = 'Application', - PatternOrTerm = 'PatternOrTerm', - Access = 'Access', + Type = 'Type', + TypeHint = 'TypeHint', + UnionType = 'UnionType', } const typePrecedences = [