2024-10-10
This commit is contained in:
29
core/sim/sim_3_01/lang.h
Normal file
29
core/sim/sim_3_01/lang.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/* 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 */
|
||||
Reference in New Issue
Block a user