feat[bytecode]: A lot of scaffolding for setup
This commit is contained in:
parent
766528677f
commit
f9ea61d348
7 changed files with 130 additions and 0 deletions
16
src/Language/Scalie/Compiler/Bytecode.hs
Normal file
16
src/Language/Scalie/Compiler/Bytecode.hs
Normal 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 = _
|
Loading…
Add table
Add a link
Reference in a new issue