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[]=
|
||||
{
|
||||
{ "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
|
||||
|
|
|
@ -134,10 +134,10 @@ int CPFile::open(char *_filename)
|
|||
---------------------------------------------------------------------- */
|
||||
int CPFile::close()
|
||||
{
|
||||
printf("Processed %d char(s) on %d line(s) in file %s\n",m_charCount,m_lineCount,m_filename);
|
||||
printf(" Processed %d char(s) on %d line(s) in file %s\n",m_charCount,m_lineCount,m_filename);
|
||||
if(m_errorCount)
|
||||
{
|
||||
printf("Found %d error(s) :(\n",m_errorCount);
|
||||
printf(" Found %d error(s) :(\n",m_errorCount);
|
||||
}
|
||||
fclose(m_fh);
|
||||
if(m_next)
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue