This commit is contained in:
Paul 2000-12-12 16:29:42 +00:00
parent 124a15101b
commit 5e18b667ef
11 changed files with 218 additions and 230 deletions

View file

@ -16,8 +16,17 @@
Includes
-------- */
#ifndef _LEXER_H
#include "lexer.h"
#endif
#ifndef _PARSER_H
#include "parser.h"
#endif
#ifndef __PFILE_H__
#include "pfile.h"
#endif
/* Std Lib
@ -69,6 +78,19 @@ int mylexer::closeInputFile()
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void mylexer::error()
{
fprintf(yyerr,"ERROR AT LINE %d, COLUMN %d\n",getCurrentLine(),getCurrentCharOnLine());
m_errorCount++;
}
/*----------------------------------------------------------------------
Function:
Purpose:
@ -113,7 +135,7 @@ int mylexer::yygetchar()
// Force compilation to stop after finding errors ( hmm.. )
if(m_errorCount)
{
printf("Stopping compilation!\n");
printf("Stopping compilation due to errors!\n");
ret=-1;
}
}