fix: field syntax
This commit is contained in:
parent
b5dc185e70
commit
a1fc824336
1 changed files with 3 additions and 3 deletions
|
|
@ -57,9 +57,9 @@ def inferMod := parser! try ("{" >> "}")
|
|||
def ctor := parser! " | " >> declModifiers >> ident >> optional inferMod >> optDeclSig
|
||||
def «inductive» := parser! "inductive " >> declId >> optDeclSig >> many ctor
|
||||
def classInductive := parser! try ("class " >> "inductive ") >> declId >> optDeclSig >> many ctor
|
||||
def structExplicitBinder := parser! try (declModifiers >> "(") >> many ident >> optional inferMod >> declSig >> optional Term.binderDefault >> ")"
|
||||
def structImplicitBinder := parser! try (declModifiers >> "{") >> many ident >> optional inferMod >> declSig >> "}"
|
||||
def structInstBinder := parser! try (declModifiers >> "[") >> many ident >> optional inferMod >> declSig >> "]"
|
||||
def structExplicitBinder := parser! try (declModifiers >> "(") >> many1 ident >> optional inferMod >> declSig >> optional Term.binderDefault >> ")"
|
||||
def structImplicitBinder := parser! try (declModifiers >> "{") >> many1 ident >> optional inferMod >> declSig >> "}"
|
||||
def structInstBinder := parser! try (declModifiers >> "[") >> many1 ident >> optional inferMod >> declSig >> "]"
|
||||
def structFields := parser! many (structExplicitBinder <|> structImplicitBinder <|> structInstBinder)
|
||||
def structCtor := parser! try (declModifiers >> ident >> optional inferMod >> " :: ")
|
||||
def structureTk := parser! "structure "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue