This commit is contained in:
parent
0c4309fb16
commit
1fab44452d
@ -61,7 +61,7 @@ struct FunctionDef
|
||||
---- */
|
||||
static FunctionDef s_functionNames[]=
|
||||
{
|
||||
{ "setCharacterExpression", 2, }, // character, expression
|
||||
{ "setCharacterAnimation", 2, }, // character, animation
|
||||
{ "setText", 1, }, // textId
|
||||
};
|
||||
static int s_functionCount=sizeof(s_functionNames)/sizeof(FunctionDef);
|
||||
|
@ -77,6 +77,7 @@ extern int main(int argc, char *argv[])
|
||||
infile=argv[1];
|
||||
outfile=argv[2];
|
||||
|
||||
printf("Scripter attempting to compile %s..\n",infile);
|
||||
if(parseFile(infile,s_baseTreeNode)==YYEXIT_SUCCESS&&s_baseTreeNode)
|
||||
{
|
||||
if(openOutputFile(outfile))
|
||||
@ -84,7 +85,7 @@ extern int main(int argc, char *argv[])
|
||||
int byteCount;
|
||||
byteCount=s_baseTreeNode->generateCode(true);
|
||||
closeOutputFile();
|
||||
printf("Generated %d bytes of code\n",byteCount*2);
|
||||
printf("Generated %d bytes of code in %s\n",byteCount*2,outfile);
|
||||
ret=0;
|
||||
}
|
||||
else
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user