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