pike.git / src / lex.c

version» Context lines:

pike.git/src/lex.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: lex.c,v 1.82 2000/10/30 19:01:21 grubba Exp $"); + RCSID("$Id: lex.c,v 1.83 2000/11/25 16:32:31 grubba Exp $");   #include "language.h"   #include "array.h"   #include "lex.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "constants.h"   #include "hashtable.h"   #include "stuff.h"   #include "pike_memory.h"   #include "interpret.h"
pike.git/src/lex.c:287:    sprintf(buf, "<OTHER %d>", n);    return buf;    }   }      struct lex lex;      /* Make lexers for shifts 0, 1 and 2. */      #define SHIFT 0 - #include "lexer.h" + #include "lexer0.h"   #undef SHIFT   #define SHIFT 1 - #include "lexer.h" + #include "lexer1.h"   #undef SHIFT   #define SHIFT 2 - #include "lexer.h" + #include "lexer2.h"   #undef SHIFT      int yylex(YYSTYPE *yylval)   {   #if LEXDEBUG>8    fprintf(stderr, "YYLEX: Calling lexer at 0x%08lx\n",    (long)lex.current_lexer);   #endif /* LEXDEBUG > 8 */    return(lex.current_lexer(yylval));   }