mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 22:35:43 +08:00
16 lines
284 B
Agda
16 lines
284 B
Agda
module Luau.Value where
|
|
|
|
open import Luau.Addr using (Addr)
|
|
open import Luau.Syntax using (Block; Expr; nil; addr)
|
|
open import Luau.Var using (Var)
|
|
|
|
data Value : Set where
|
|
nil : Value
|
|
addr : Addr → Value
|
|
|
|
val : ∀ {a} → Value → Expr a
|
|
val nil = nil
|
|
val (addr a) = addr a
|
|
|
|
|