My Project
Loading...
Searching...
No Matches
include
scanner.h
Go to the documentation of this file.
1
4
#ifndef __SCANNER
5
#define __SCANNER
6
7
typedef
struct
Scanner_
{
8
void
*
scanner
;
9
SymTable *
st
;
10
struct
PP_
*
pp
;
11
AstGetter
*
getter
;
12
struct
Vector_
hashes
;
13
struct
pos_t
pos
;
14
struct
pos_t
tmp
;
15
struct
pos_t
old
;
16
short
int
interp_state
;
17
short
int
spread_state
;
18
// bool error;
19
bool
locale
;
// handle \n in the lexer
20
}
Scanner
;
21
22
ANN2
(1, 2)
23
int
scanner_error
(
Scanner
*scan, const
char
*
main
, const
char
*explain,
24
const
loc_t
loc, const uint error_code);
25
ANN
int
scanner_secondary
(
Scanner
*scan, const
char
*
main
, const
loc_t
loc);
26
27
#endif
main
int main(int argc, char **argv)
Definition
main.c:4
ANN2
ANN2(1)
Definition
pparg.c:46
Scanner
struct Scanner_ Scanner
scanner_secondary
ANN int scanner_secondary(Scanner *scan, const char *main, const loc_t loc)
Definition
scanner.c:79
scanner_error
int scanner_error(Scanner *scan, const char *main, const char *explain, const loc_t loc, const uint error_code)
Definition
scanner.c:70
AstGetter_
Definition
ast_getter.h:21
PP_
Definition
pp.h:26
Scanner_
Definition
scanner.h:7
Scanner_::pp
struct PP_ * pp
Definition
scanner.h:10
Scanner_::hashes
struct Vector_ hashes
Definition
scanner.h:12
Scanner_::scanner
void * scanner
Definition
scanner.h:8
Scanner_::tmp
struct pos_t tmp
Definition
scanner.h:14
Scanner_::old
struct pos_t old
Definition
scanner.h:15
Scanner_::spread_state
short int spread_state
Definition
scanner.h:17
Scanner_::st
SymTable * st
Definition
scanner.h:9
Scanner_::pos
struct pos_t pos
Definition
scanner.h:13
Scanner_::getter
AstGetter * getter
Definition
scanner.h:11
Scanner_::interp_state
short int interp_state
Definition
scanner.h:16
Scanner_::locale
bool locale
Definition
scanner.h:19
loc_t_
Definition
gwlog.h:15
pos_t
Definition
gwlog.h:7
Generated by
1.12.0