(* Title: HOL/Bali/Value.thy Author: David von Oheimb
*) subsection‹Java values›
theoryValueimports Type begin
typedecl loc 🍋‹locations, i.e. abstract references on objects›
datatype val
= Unit 🍋‹dummy result value of void methods›
| Bool bool 🍋‹Boolean value›
| Intg int 🍋‹integer value›
| Null 🍋‹null reference›
| Addr loc 🍋‹addresses, i.e. locations of objects›
primrec typeof :: "dyn_ty \ val \ ty option" where "typeof dt Unit = Some (PrimT Void)"
| "typeof dt (Bool b) = Some (PrimT Boolean)"
| "typeof dt (Intg i) = Some (PrimT Integer)"
| "typeof dt Null = Some NT"
| "typeof dt (Addr a) = dt a"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.