File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,10 +96,9 @@ module DRIVER-COQ
9696 ++Patterns
9797 CoqTermToPattern(match Ts with EQs end)
9898 ), .Patterns))
99- // TODO: if TM is not a QualID, still need to translate. ex: (fun x => x) 3
100- rule CoqTermToPattern(TM:CoqQualID ARG) => CoqIdentToSymbol(TM)(CoqArgToPatterns(ARG))
101-
99+ rule CoqTermToPattern(TM:CoqTerm ARG) => CoqTermToPattern(TM)(CoqArgToPatterns(ARG))
102100 rule CoqTermToPattern(fix ID BINDERs := TM) => \mu { CoqNameToVariableName(ID) {{ StringToSort("Term") }} } CoqTermToPattern(fun BINDERs => TM)
101+ rule CoqTermToPattern(@ QID:CoqQualID TM:CoqTerm) => CoqIdentToSymbol(QID)(CoqTermToPattern(TM))
103102
104103 syntax Patterns ::= CoqArgToPatterns(CoqArg) [function]
105104 rule CoqArgToPatterns(ARG1 ARG2) => CoqArgToPatterns(ARG1) ++Patterns CoqArgToPatterns(ARG2)
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ only in this scenario*.
143143 | Variable
144144 | SetVariable
145145 | Symbol
146- | Symbol "(" Patterns ")" [klabel(apply)]
146+ | Pattern "(" Patterns ")" [klabel(apply)]
147147
148148 | "\\top" "(" ")" [klabel(top)]
149149 | "\\bottom" "(" ")" [klabel(bottom)]
You can’t perform that action at this time.
0 commit comments