mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-14 06:00:39 +00:00
7f867ac166
Adds number support to the prototype. Binary operators are next.
11 lines
385 B
Agda
11 lines
385 B
Agda
module Luau.Value.ToString where
|
|
|
|
open import Agda.Builtin.String using (String)
|
|
open import Agda.Builtin.Float using (primShowFloat)
|
|
open import Luau.Value using (Value; nil; addr; number)
|
|
open import Luau.Addr.ToString using (addrToString)
|
|
|
|
valueToString : Value → String
|
|
valueToString nil = "nil"
|
|
valueToString (addr a) = addrToString a
|
|
valueToString (number x) = primShowFloat x
|