3 static char rcsid2[] = "$Id: scan.l,v 2.6 1994/06/24 10:40:58 ceriel Exp $";
7 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
8 * See the copyright notice in the ACK home directory, in the file "Copyright".
10 * Author: Hans van Staveren
16 \"[^"]*\" { strncpy(patid,yytext,sizeof(patid)); return(STRING); }
17 notreg return(NOTREG);
20 rotate return(ROTATE);
23 defined return(DEFINED);
24 samesign return(SAMESIGN);
57 [0-9]+ { long l= atol(yytext);
58 if (l>32767) yyerror("Number too big");
59 yylval.y_int= (int) l;
64 \n { lino++; return(yytext[0]); }
65 :[ \t]*\n[ \t]+ { lino++; return(':'); }
66 ^"# "[0-9]+.*\n { lino=atoi(yytext+2); }