primop in compiler

This commit is contained in:
2025-04-07 14:29:55 -07:00
parent eeb790f1b2
commit c51d368e90
4 changed files with 9 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ data CExp : U where
CConstr : Name -> List CExp -> CExp
-- Raw javascript for `pfunc`
CRaw : String -> List QName -> CExp
-- Need this for magic Nat
-- TODO - use for primitives too
CPrimOp : String CExp CExp -> CExp
-- I'm counting Lam in the term for arity. This matches what I need in
-- code gen.