2 /********************************************
4 copyright 1991, Michael D. Brennan
6 This is a source file for mawk, an implementation of
7 the AWK programming language.
9 Mawk is distributed without warranty under the terms of
10 the GNU General Public License, version 2, 1991.
11 ********************************************/
15 * Revision 1.2 1993/07/17 13:22:59 mike
16 * indent and general code cleanup
18 * Revision 1.1.1.1 1993/07/03 18:58:15 mike
21 * Revision 5.1 1991/12/05 07:56:12 brennan
50 {"continue", CONTINUE},
56 {"match", MATCH_FUNC},
65 {"function", FUNCTION},
69 /* put keywords in the symbol table */
73 register struct kw *p = keywords ;
79 q->type = ST_KEYWORD ;
80 q->stval.kw = p++->kw ;
84 /* find a keyword to emit an error message */
91 for (p = keywords; p->text; p++)
92 if (p->kw == kw_token) return p->text ;