feat: $. notation
This commit is contained in:
parent
f04f51a295
commit
e221a239f8
1 changed files with 2 additions and 0 deletions
|
|
@ -143,6 +143,8 @@ def checkIsSort := checkLeading (fun leading => leading.isOfKind `Lean.Parser.Te
|
|||
@[builtinTermParser] def arrayRef := tparser! pushLeading >> symbolNoWs "[" (appPrec+1) >> termParser >>"]"
|
||||
|
||||
@[builtinTermParser] def dollar := tparser! try (pushLeading >> dollarSymbol >> checkWsBefore "space expected") >> termParser 0
|
||||
@[builtinTermParser] def dollarProj := tparser! pushLeading >> symbol "$." 1 >> (fieldIdx <|> ident)
|
||||
|
||||
@[builtinTermParser] def fcomp := tparser! infixR " ∘ " 90
|
||||
|
||||
@[builtinTermParser] def prod := tparser! infixR " × " 35
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue