Skip to content

Commit

Permalink
add types to things that need them
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Jan 29, 2024
1 parent 77acc94 commit ccefb8f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tree_shared/src/schema.egg
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

; value unit
(function Print (Expr) Expr)
; addr value
(function Read (Expr) Expr)
; addr type value
(function Read (Expr Type) Expr)
; addr value unit
(function Write (Expr Expr) Expr)

Expand Down Expand Up @@ -83,11 +83,12 @@
; Functions
; ==========================

; f output
(function Function (IdSort Expr) Expr)
; f output input ty output ty
(function Function (IdSort Expr Type Type) Expr)

; referencing id name of func arg
(function Call (IdSort String Expr) Expr)

; f arg
(function Call (IdSort Expr) Expr)

;; Rulesets
(ruleset always-run)
Expand Down

0 comments on commit ccefb8f

Please sign in to comment.