Skip to content

Commit 574c6f5

Browse files
committed
Added ghost variable syntax ("old")
1 parent a3e2c50 commit 574c6f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Abstract_Prog_Syntax.thy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,10 @@ translations
5959
"_uwhile b P" == "CONST uwhile (b)\<^sub>e P"
6060
"_uuntil P b" == "CONST uuntil P (b)\<^sub>e"
6161

62+
syntax
63+
"_ghost_old" :: "id" \<comment> \<open> A distinguished name for the ghost state ("old") \<close>
64+
65+
parse_translation \<open>
66+
[(@{syntax_const "_ghost_old"}, fn ctx => fn term => Syntax.free "old")]\<close>
67+
6268
end

0 commit comments

Comments
 (0)