|
|
1.1 root 1: %{
2: /*
3: * Copyright (c) 1987 by Ed James, UC Berkeley. All rights reserved.
4: *
5: * Copy permission is hereby granted provided that this notice is
6: * retained on all partial or complete copies.
7: *
8: * For more info on this and all of my stuff, mail [email protected].
9: */
10:
11: #include "y.tab.h"
12: extern int line;
13: %}
14: %%
15: [0-9]+ { yylval.ival = atoi(yytext); return(ConstOp); }
16: height { return(HeightOp); }
17: width { return(WidthOp); }
18: newplane { return(NewplaneOp); }
19: update { return(UpdateOp); }
20: airport { return(AirportOp); }
21: line { return(LineOp); }
22: exit { return(ExitOp); }
23: beacon { return(BeaconOp); }
24: [wedcxzaq] { yylval.cval = *yytext; return (DirOp); }
25: [ \t]+ { }
26: #[^\n]*\n { line++; }
27: \n { line++; }
28: . { return *yytext; }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.