1
0
Fork 0
mirror of https://github.com/luau-lang/luau.git synced 2025-04-11 14:20:55 +01:00
luau/prototyping/Luau/Addr/ToString.agda
Alan Jeffrey 5187e64f88
Implement a prototype interpreter ()
* First cut interpreter
2022-02-09 17:14:29 -06:00

8 lines
292 B
Agda

module Luau.Addr.ToString where
open import Agda.Builtin.String using (String; primStringAppend)
open import Luau.Addr using (Addr)
open import Agda.Builtin.Int using (Int; primShowInteger; pos)
addrToString : Addr String
addrToString a = primStringAppend "a" (primShowInteger (pos a))