luau/prototyping/Luau/Syntax.agda
2022-02-03 17:45:22 -06:00

27 lines
539 B
Agda
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module Luau.Syntax where
open import Agda.Builtin.String using (String)
data Type : Set where
nil : Type
_⇒_ : Type Type Type
none : Type
any : Type
__ : Type Type Type
_∩_ : Type Type Type
Var : Set
Var = String
data Block : Set
data Expr : Set
data Block where
function_⟨_⟩_end_ : Var Var Block Block Block
local_←_∙_ : Var Expr Block Block
return : Expr Block
data Expr where
nil : Expr
var : Var Expr
_$_ : Expr Expr Expr