mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Renamed Toy_ModuleBuilder to Toy_ModuleCompiler
I also noticed that Toy_ModuleBundle isn't being used right now.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "toy_lexer.h"
|
||||
#include "toy_parser.h"
|
||||
#include "toy_module_builder.h"
|
||||
#include "toy_module_compiler.h"
|
||||
#include "toy_vm.h"
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -332,7 +332,7 @@ int repl(const char* filepath) {
|
||||
continue;
|
||||
}
|
||||
|
||||
void* buffer = Toy_compileModuleBuilder(ast);
|
||||
void* buffer = Toy_compileModule(ast);
|
||||
Toy_Module module = Toy_parseModule(buffer);
|
||||
Toy_bindVM(&vm, &module, runCount++ > 0);
|
||||
|
||||
@@ -481,7 +481,7 @@ int main(int argc, const char* argv[]) {
|
||||
|
||||
Toy_Bucket* bucket = Toy_allocateBucket(TOY_BUCKET_IDEAL);
|
||||
Toy_Ast* ast = Toy_scanParser(&bucket, &parser);
|
||||
void* buffer = Toy_compileModuleBuilder(ast);
|
||||
void* buffer = Toy_compileModule(ast);
|
||||
Toy_freeBucket(&bucket);
|
||||
free(source);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user