mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 05:10:55 +00:00
vm: very basic virtual machine
This commit is contained in:
8
execution/build.gradle.kts
Normal file
8
execution/build.gradle.kts
Normal file
@ -0,0 +1,8 @@
|
||||
plugins {
|
||||
id("gay.pizza.pork.module")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api(project(":frontend"))
|
||||
implementation(project(":common"))
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
package gay.pizza.pork.execution
|
||||
|
||||
interface ExecutionContext {
|
||||
fun execute()
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package gay.pizza.pork.execution
|
||||
|
||||
import gay.pizza.pork.ast.gen.Symbol
|
||||
import gay.pizza.pork.frontend.ImportLocator
|
||||
|
||||
interface ExecutionContextProvider {
|
||||
fun prepare(importLocator: ImportLocator, entryPointSymbol: Symbol): ExecutionContext
|
||||
}
|
Reference in New Issue
Block a user