luau/prototyping/Luau/RuntimeType.agda
ajeffrey@roblox.com ac76424b6d WIP
2022-02-25 14:47:01 -06:00

15 lines
360 B
Agda

module Luau.RuntimeType where
open import Luau.Syntax using (Value; nil; addr; number; bool)
data RuntimeType : Set where
function : RuntimeType
number : RuntimeType
nil : RuntimeType
boolean : RuntimeType
valueType : Value RuntimeType
valueType nil = nil
valueType (addr a) = function
valueType (number n) = number
valueType (bool b) = boolean