-
Notifications
You must be signed in to change notification settings - Fork 3
/
lang.h
28 lines (23 loc) · 851 Bytes
/
lang.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* This file is part of the software similarity tester SIM.
Written by Dick Grune, Vrije Universiteit, Amsterdam.
$Id: lang.h,v 1.7 2012-06-09 08:09:18 Gebruiker 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' provides access to the lowest-level
token routines and data.
The actual implementation derives from one of the *lang.l files.
There is a dummy implementation lang.c.
*/
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 */