4 #include "y.tab.h" /* this comes from bison */
9 #define copy_and_return(token_type) { strcpy(yylval.name,yytext); \
12 int yylexlinenum = 0; /* so we can count lines */
16 /* Lexical scanning rules begin from here. */
18 MEN|WOMEN|STOCKS|TREES copy_and_return(NOUN)
19 MISTAKES|GNUS|EMPLOYEES copy_and_return(NOUN)
20 LOSERS|USERS|CARS|WINDOWS copy_and_return(NOUN)
22 DATABASE|NETWORK|FSF|GNU copy_and_return(PROPER_NOUN)
23 COMPANY|HOUSE|OFFICE|LPF copy_and_return(PROPER_NOUN)
25 THE|THIS|THAT|THOSE copy_and_return(DECLARATIVE)
27 ALL|FIRST|LAST copy_and_return(CONDITIONAL)
29 FIND|SEARCH|SORT|ERASE|KILL copy_and_return(VERB)
30 ADD|REMOVE|DELETE|PRINT copy_and_return(VERB)
32 QUICKLY|SLOWLY|CAREFULLY copy_and_return(ADVERB)
34 IN|AT|ON|AROUND|INSIDE|ON copy_and_return(POSITIONAL)
37 "\n" yylexlinenum++; return(NEWLINE);