lex.h 666 B

12345678910111213141516171819
  1. /* This file is part of the software similarity tester SIM.
  2. Written by Dick Grune, Vrije Universiteit, Amsterdam.
  3. $Id: lex.h,v 2.5 1998/02/03 14:28:27 dick Exp $
  4. */
  5. /* Since the lex_X variables are hoisted unchanged through the levels
  6. lang, stream, and buff, to be used by pass1, pass2, etc., they
  7. have to be placed in a module of their own.
  8. */
  9. #include "token.h"
  10. /* special tokens */
  11. #define EOL NORM(0377) /* end of line */
  12. extern TOKEN lex_token; /* token produced, or EOL */
  13. extern unsigned int lex_nl_cnt; /* line count */
  14. extern unsigned int lex_tk_cnt; /* token position */
  15. extern unsigned int lex_non_ascii_cnt; /* # of non-ASCII chars found */