Auto-generate the AST.

This commit is contained in:
alex committed 2023-09-04 22:13:58 -07:00
1 parent f06ea93dc4
commit 174d51ca1c
58 files changed
+741 -390

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
plugins {
pork_module
id("gay.pizza.pork.module")
}
dependencies {
@@ -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()