Dedukti icon indicating copy to clipboard operation
Dedukti copied to clipboard

New syntax for pragmas and assertions

Open dwarfmaster opened this issue 2 years ago • 3 comments

Implement the new syntax for pragmas and assertions as discussed.

dwarfmaster avatar Jun 14 '22 09:06 dwarfmaster

All right, I'll just inline some example file here to have a taste of it

(; OK ;)

A : Type.
def B := A.
def C := A.
D : Type.

assert |- B == A.
assert |- B == C.
(;# assertnot A == D #;)

gabrielhdt avatar Jun 14 '22 09:06 gabrielhdt

All previous pragmas of the form #PRAGMA... are still supported as (;# PRAGMA ... #;), making it easy to update tests.

dwarfmaster avatar Jun 14 '22 09:06 dwarfmaster

This syntax change requires an update of the syntax.bnf file (generated by a command like make bnf) and of the README (at least the "Commands" section, probably some other occurrences too).

GuillaumeGen avatar Jun 14 '22 12:06 GuillaumeGen