30 lines
925 B
C
30 lines
925 B
C
/* This file is part of the software similarity tester SIM.
|
|
Written by Dick Grune, Vrije Universiteit, Amsterdam.
|
|
$Id: lang.h,v 1.9 2016-04-27 19:09:48 dick Exp $
|
|
*/
|
|
|
|
/*
|
|
The *lang.l files provide two interfaces:
|
|
language.[ch] static data about the language
|
|
lang.[ch] dynamic data about the input file's content
|
|
This is lang.[ch].
|
|
*/
|
|
|
|
/*
|
|
The abstract module 'lang' declares the names that provide access to
|
|
the lowest-level token routines and data.
|
|
The corresponding definitions must be provided by the *lang.l file.
|
|
|
|
There is a dummy implementation lang.c, to satisfy the module
|
|
consistency checker check-ch.
|
|
*/
|
|
|
|
extern FILE *yyin;
|
|
extern int yylex(void);
|
|
extern void yystart(void);
|
|
|
|
extern Token lex_token; /* token produced, or End_Of_Line */
|
|
extern size_t lex_nl_cnt; /* line count */
|
|
extern size_t lex_tk_cnt; /* token position */
|
|
extern size_t lex_non_ascii_cnt; /* # of non-ASCII chars found */
|