Added Reverse pattern

This commit is contained in:
Thomas Jensen 1999-06-14 12:13:41 +00:00
parent 42d3d8f4f6
commit cda91cdbef

View File

@ -4,7 +4,7 @@
* Date created: March 15, 1999 (Monday, 17:16h)
* Author: Thomas Jensen
* tsjensen@stud.informatik.uni-erlangen.de
* Version: $Id: lexer.l,v 1.4 1999/04/09 13:31:13 tsjensen Exp tsjensen $
* Version: $Id: lexer.l,v 1.5 1999/06/03 18:54:55 tsjensen Exp tsjensen $
* Language: lex (ANSI C)
* Purpose: flex lexical analyzer for boxes configuration files
* Remarks: ---
@ -12,6 +12,9 @@
* Revision History:
*
* $Log: lexer.l,v $
* Revision 1.5 1999/06/03 18:54:55 tsjensen
* *** empty log message ***
*
* Revision 1.4 1999/04/09 13:31:13 tsjensen
* Removed all code related to OFFSET blocks (obsolete)
*
@ -36,7 +39,7 @@
#include "y.tab.h"
const char rcsid_lexer_l[] =
"$Id: lexer.l,v 1.4 1999/04/09 13:31:13 tsjensen Exp tsjensen $";
"$Id: lexer.l,v 1.5 1999/06/03 18:54:55 tsjensen Exp tsjensen $";
int yylineno = 1;
@ -179,6 +182,13 @@ Replace {
return YREPLACE;
}
Reverse {
#ifdef DEBUG
fprintf (stderr, "\nYREVERSE: %s", yytext);
#endif
return YREVERSE;
}
<SHAPES,ELASTIC>nw { yylval.shape = NW; return SHAPE; }
<SHAPES,ELASTIC>nnw { yylval.shape = NNW; return SHAPE; }