Auto-generate the AST.

This commit is contained in:
2023-09-04 21:50:27 -07:00
parent f06ea93dc4
commit 174d51ca1c
58 changed files with 741 additions and 390 deletions

View File

@ -1,5 +1,5 @@
plugins {
pork_module
id("gay.pizza.pork.module")
}
dependencies {

View File

@ -101,7 +101,7 @@ class EvaluationVisitor(root: Scope) : NodeVisitor<Any> {
}
}
override fun visitFunctionDeclaration(node: FunctionDefinition): Any {
override fun visitFunctionDefinition(node: FunctionDefinition): Any {
val blockFunction = visitBlock(node.block) as BlockFunction
val function = CallableFunction { arguments ->
currentScope = currentScope.fork()