2001-06-20 22:10 UTC-0800 Ron Pinkas <ron@profit-master.com>
* hb_slex.vc
* makefile.vc
* Synched make files.
* contrib/libmisc/makefile.vc
! Corrected BIN_DIR to ../../bin/vc
* source/compiler/simplex.c
* Revised 1 debug message.
* source/compiler/harbour.slx
* Improved yytext handling.
* source/compiler/harbour.sly
* source/compiler/harbour.y
+ Added <yyerrok> after <yyclearin> to enable reporting of errors on consecutive lines. (only first line was reported!)
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
2001-06-20 22:10 UTC-0800 Ron Pinkas <ron@profit-master.com>
|
||||
* hb_slex.vc
|
||||
* makefile.vc
|
||||
* Synched make files.
|
||||
|
||||
* contrib/libmisc/makefile.vc
|
||||
! Corrected BIN_DIR to ../../bin/vc
|
||||
|
||||
* source/compiler/simplex.c
|
||||
* Revised 1 debug message.
|
||||
* source/compiler/harbour.slx
|
||||
* Improved yytext handling.
|
||||
|
||||
* source/compiler/harbour.sly
|
||||
* source/compiler/harbour.y
|
||||
+ Added <yyerrok> after <yyclearin> to enable reporting of errors on consecutive lines. (only first line was reported!)
|
||||
|
||||
2001-06-20 14:50 UTC-0400 David G. Holm <dholm@jsd-llc.com>
|
||||
|
||||
* include/hbvm.h
|
||||
|
||||
@@ -52,7 +52,7 @@ MK_FLAGS = $(MAKEFLAGS: =)
|
||||
|
||||
OBJ_DIR = ..\..\obj\vc
|
||||
LIB_DIR = ..\..\lib\vc
|
||||
BIN_DIR = ..\..\bin
|
||||
BIN_DIR = ..\..\bin\vc
|
||||
|
||||
#
|
||||
# Directory macros. These should never have to change.
|
||||
|
||||
@@ -548,6 +548,7 @@ COMMON_LIB_OBJS = \
|
||||
|
||||
{$(VM_DIR)}.asm{$(OBJ_DIR)}.obj:
|
||||
rem lib /extract:$(OBJ_DIR)\symbols.obj /out:$(OBJ_DIR)\symbols.obj \harb35\lib\vm.lib
|
||||
rem $(AS) $< $@ nul nul
|
||||
$(AS) /c /Fo$@ $<
|
||||
|
||||
{$(VM_DIR)}.c{$(OBJ_DIR)}.obj:
|
||||
|
||||
@@ -83,7 +83,7 @@ HBPDF_DIR = contrib\pdflib
|
||||
# C compiler definition and C flags. These should never have to change.
|
||||
#
|
||||
|
||||
AS = masm
|
||||
AS = ML
|
||||
CFLAGS = -I$(INCLUDE_DIR) -TP -W3 -nologo $(C_USR) $(CFLAGS)
|
||||
CLIBFLAGS = -c $(CFLAGS) $(CLIBFLAGS)
|
||||
CLIBFLAGSDEBUG = -Zi $(CLIBFLAGS)
|
||||
@@ -548,7 +548,8 @@ COMMON_LIB_OBJS = \
|
||||
|
||||
{$(VM_DIR)}.asm{$(OBJ_DIR)}.obj:
|
||||
rem lib /extract:$(OBJ_DIR)\symbols.obj /out:$(OBJ_DIR)\symbols.obj \harb35\lib\vm.lib
|
||||
$(AS) $< $@ nul nul
|
||||
rem $(AS) $< $@ nul nul
|
||||
$(AS) /c /Fo$@ $<
|
||||
|
||||
{$(VM_DIR)}.c{$(OBJ_DIR)}.obj:
|
||||
$(CC) $(CLIBFLAGS) -Fo$(OBJ_DIR)\ $<
|
||||
|
||||
@@ -508,16 +508,16 @@ LANGUAGE_RULES_ARE {
|
||||
int hb_comp_SLX_InterceptAction( int iRet, char *sToken )
|
||||
{
|
||||
extern char *yytext;
|
||||
extern int yyleng;
|
||||
|
||||
if( iRet < 256 )
|
||||
{
|
||||
yytext[0] = iRet;
|
||||
yytext[1] = '\0';
|
||||
yyleng = 1;
|
||||
}
|
||||
else if( iRet < 512 )
|
||||
{
|
||||
yytext = sToken;
|
||||
|
||||
if( iRet == IDENTIFIER )
|
||||
{
|
||||
if( iIdentifier > 0 )
|
||||
@@ -525,10 +525,16 @@ int hb_comp_SLX_InterceptAction( int iRet, char *sToken )
|
||||
iIdentifier--;
|
||||
}
|
||||
}
|
||||
else if( yylval.string == NULL )
|
||||
{
|
||||
yytext = sToken;
|
||||
yyleng = strlen( yytext );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
yytext = sToken;
|
||||
yyleng = strlen( yytext );
|
||||
|
||||
if( iRet == WANTS_EXP )
|
||||
{ iRet = iWantsEXP; }
|
||||
|
||||
@@ -258,7 +258,7 @@ Source : Crlf
|
||||
| Statement
|
||||
| Line
|
||||
| ProcReq
|
||||
| error Crlf { yyclearin; }
|
||||
| error Crlf { yyclearin; yyerrok; }
|
||||
| Source Crlf
|
||||
| Source VarDefs
|
||||
| Source FieldsDef
|
||||
@@ -268,7 +268,7 @@ Source : Crlf
|
||||
| Source Statement
|
||||
| Source Line
|
||||
| Source ProcReq
|
||||
| Source error Crlf { yyclearin; }
|
||||
| Source error Crlf { yyclearin; yyerrok; }
|
||||
;
|
||||
|
||||
Line : LINE NUM_INTEGER LITERAL Crlf
|
||||
|
||||
@@ -246,7 +246,7 @@ Source : Crlf
|
||||
| Line
|
||||
| ProcReq
|
||||
| GET {/* Dummy - We need to use the GET token which is used by harbour.sly so both will generate same harboury.h */}
|
||||
| error Crlf { yyclearin; }
|
||||
| error Crlf { yyclearin; yyerrok; }
|
||||
| Source Crlf
|
||||
| Source VarDefs
|
||||
| Source FieldsDef
|
||||
@@ -256,7 +256,7 @@ Source : Crlf
|
||||
| Source Statement
|
||||
| Source Line
|
||||
| Source ProcReq
|
||||
| Source error Crlf { yyclearin; }
|
||||
| Source error Crlf { yyclearin; yyerrok; }
|
||||
;
|
||||
|
||||
Line : LINE NUM_INTEGER LITERAL Crlf
|
||||
|
||||
@@ -217,7 +217,7 @@ static int iRet;
|
||||
static BOOL bTmp, bIgnoreWords = FALSE, bRecursive = FALSE;
|
||||
|
||||
/* Lex emulation */
|
||||
char * yytext;
|
||||
char * yytext = (char *) sToken;
|
||||
int yyleng;
|
||||
|
||||
/* NewLine Support. */
|
||||
@@ -479,8 +479,10 @@ static int rulecmp( const void * pLeft, const void * pRight );
|
||||
\
|
||||
if( iRet ) \
|
||||
{ \
|
||||
INTERCEPT_ACTION(iRet); \
|
||||
DEBUG_INFO( printf( "Returning: %i\n", iRet ) ); \
|
||||
\
|
||||
INTERCEPT_ACTION(iRet); \
|
||||
\
|
||||
return iRet; \
|
||||
} \
|
||||
else \
|
||||
@@ -789,7 +791,7 @@ int SimpLex_GetNextToken( void )
|
||||
NEW_LINE_ACTION();
|
||||
}
|
||||
|
||||
DEBUG_INFO( printf( "Reducing Delimiter: '%c' As: %i\n", chr, iRet ) );
|
||||
DEBUG_INFO( printf( "Reducing Delimiter: '%c' As: %i\n", chr, acReturn[(int)chr] ) );
|
||||
return acReturn[(int)chr];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user