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