change syntax for javascript code literals

This commit is contained in:
2024-11-25 21:53:23 -08:00
parent 07cbeec6cc
commit e265248b11
21 changed files with 140 additions and 287 deletions

View File

@@ -1,10 +1,10 @@
module Auto2
ptype World
pfunc log : {A : U} -> A -> World := "(_, a) => console.log(a)"
pfunc log : {A : U} -> A -> World := `(_, a) => console.log(a)`
ptype Int
pfunc i_plus : Int -> Int -> Int := "(x,y) => x + y"
pfunc i_plus : Int -> Int -> Int := `(x,y) => x + y`
data Nat : U where
Z : Nat