chore: cleanup
This commit is contained in:
parent
6909faf4a2
commit
acba8d4a4a
1 changed files with 1 additions and 3 deletions
|
|
@ -30,8 +30,6 @@ builtin_initialize
|
|||
@[inline] def syntaxParser (rbp : Nat := 0) : Parser :=
|
||||
categoryParser `stx rbp
|
||||
|
||||
-- TODO: `max` is a bad precedence name. Find a new one.
|
||||
def maxSymbol := parser! nonReservedSymbol "max" true
|
||||
def «precedence» := parser! ":" >> precedenceParser maxPrec
|
||||
def optPrecedence := optional (atomic «precedence»)
|
||||
|
||||
|
|
@ -39,7 +37,7 @@ namespace Syntax
|
|||
@[builtinPrecParser] def numPrec := checkPrec maxPrec >> numLit
|
||||
|
||||
@[builtinPrioParser] def numPrio := checkPrec maxPrec >> numLit
|
||||
@[builtinPrioParser] def highPrio := parser!:maxPrec nonReservedSymbol "high" true
|
||||
@[builtinPrioParser] def highPrio := parser!:maxPrec nonReservedSymbol "high"
|
||||
|
||||
@[builtinSyntaxParser] def paren := parser! "(" >> many1 syntaxParser >> ")"
|
||||
@[builtinSyntaxParser] def cat := parser! ident >> optPrecedence
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue