1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It is one of the source files comprising zwgc, the Zephyr WindowGram
5 * Created by: Marc Horowitz <marc@athena.mit.edu>
9 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
10 * For copying and distribution information, see the file
15 #include <zephyr/mit-copyright.h>
23 * is_identifier_char(c) - is c a character that could be part of
26 * NOTE: this information is hardwired into yylex() in lexer.c!
29 #define is_identifier_char(c) (isalnum(c) || (c)=='_')
32 * The maximum # of significant letters in an identifier:
34 * Note: in order for all keywords to be recognized, this must be at least 20.
37 #define MAX_IDENTIFIER_LENGTH 128
40 * yylineno - this holds the current line # we are on. Updated automatically
47 * lex_open - this routine [re]initializes the lexer & prepares it to lex
48 * a file. Resets current line # to 1.
51 extern void lex_open(/* FILE *file */);
54 * yylex - performs as per. the yacc manual's requirements