version 1.2, 2003/03/09 15:17:12
|
version 1.3, 2003/08/25 14:17:57
|
Line 1
|
Line 1
|
/* front-end compiler for vmgen example |
/* front-end compiler for vmgen example |
|
|
Copyright (C) 2001,2002 Free Software Foundation, Inc. |
Copyright (C) 2001,2002,2003 Free Software Foundation, Inc. |
|
|
This file is part of Gforth. |
This file is part of Gforth. |
|
|
Line 40 int vm_debug;
|
Line 40 int vm_debug;
|
|
|
void yyerror(char *s) |
void yyerror(char *s) |
{ |
{ |
fprintf (stderr, "%s: %d: %s\n", program_name, yylineno, s); |
#if 1 |
|
/* for pure flex call */ |
|
fprintf(stderr, "%s: %s\n", program_name, s); |
|
#else |
|
/* lex or flex -l supports yylineno */ |
|
fprintf (stderr, "%s: %d: %s\n", program_name, yylineno, s); |
|
#endif |
} |
} |
|
|
#include "mini-gen.i" |
#include "mini-gen.i" |