11/01/14 22:06:46 uUwBQJ3L
>>605
スクリプトをPython/Ruby/Perl等でC++のソースコードに変換してDLLにコンパイルする感じですかね。
test.txt
表示( "hello world" );
待機(10秒)
終了
↓Python/Ruby/Perlで作ったコンバータ
test.cpp
struct SCRIPT_DATA {
unsigned int opecode;
void* operand;
};
SCRIPT_DATA test[] = {
{ OP_PRINT, operand0000, },
{ OP_NOP, ( void* )10.0f, },
{ OP_EXIT, },
};
char operand0000[] = "hello world";