mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
rename to pikaByteCodeGen.exe
This commit is contained in:
parent
87ed7ce760
commit
6e81fb1b3d
@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.0.0)
|
||||
project(pikaBitCodeCompiler VERSION 0.1.0)
|
||||
project(pikaByteCodeGen VERSION 0.1.0)
|
||||
|
||||
include(CTest)
|
||||
enable_testing()
|
||||
@ -7,7 +7,7 @@ enable_testing()
|
||||
aux_source_directory(pikascript/pikascript-core pikascript-core)
|
||||
include_directories(pikascript/pikascript-core)
|
||||
|
||||
add_executable(pikaBitCodeCompiler main.c
|
||||
add_executable(pikaByteCodeGen main.c
|
||||
${pikascript-core}
|
||||
)
|
||||
|
||||
|
@ -69,11 +69,11 @@ void main() {
|
||||
pyText[fsize] = 0;
|
||||
|
||||
Args* buffs = New_strBuff();
|
||||
char* pikaBitCode = Parser_multiLineToAsm(buffs, pyText);
|
||||
char* pika_byte_code = Parser_multiLineToAsm(buffs, pyText);
|
||||
|
||||
FILE* file_bitCode = fopen("pikaBitCode.txt", "w");
|
||||
fputs(pikaBitCode, file_bitCode);
|
||||
printf("[ OK ]: write file to 'pikaBitCode.txt'. \r\n");
|
||||
FILE* file_byte_code = fopen("pikaByteCode.txt", "w");
|
||||
fputs(pika_byte_code, file_byte_code);
|
||||
printf("[ OK ]: write file to 'pikaByteCode.txt'. \r\n");
|
||||
|
||||
return;
|
||||
}
|
BIN
tools/pikaByteCodeGen/pikaByteCodeGen.exe
Normal file
BIN
tools/pikaByteCodeGen/pikaByteCodeGen.exe
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user