feat[bytecode]: A lot of scaffolding for setup

This commit is contained in:
vegowotenks 2025-08-14 13:22:31 +02:00
parent 766528677f
commit f9ea61d348
7 changed files with 130 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{-# LANGUAGE Safe #-}
module Language.Scalie.Compiler.Bytecode (EntryPoint, compile) where
import Language.Scalie.Ast.Module (Module)
import Data.Text (Text)
import Language.Scalie.Ast.Provenance (Provenance)
import Language.Scalie.Ast.Provenance.SourceLocation (SourceLocation)
import Language.Scalie.Bytecode.Object qualified as Bytecode
import Data.Kind (Type)
-- | The name of the entrypoint function
type EntryPoint :: Type
type EntryPoint = Text
compile :: Module (Provenance SourceLocation) -> EntryPoint -> Bytecode.Object
compile = _