-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlex.h
38 lines (32 loc) · 1007 Bytes
/
lex.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
29
30
31
32
33
34
35
36
37
38
#ifndef LEXICAL_ANALYSER
#define LEXICAL_ANALYSER
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "symbol_table.h"
extern int linecounter;
extern char *line;
extern char *lineptr;
extern char ch;
extern char scope[50];
extern FILE *sourcefile;
extern FILE *trace;
extern FILE *tracelex;
extern FILE *errorfile;
/* --------------------------------------------- */
/* EXTERNAL FUNCTIONS */
/* --------------------------------------------- */
int getToken(tpToken *token);
/* --------------------------------------------- */
/* VERIFICATION FUNCTIONS */
/* --------------------------------------------- */
int isAlpha(char ch);
int isAlphaNum(char ch);
int isNumeric(char ch);
int isSpace(char ch);
/* --------------------------------------------- */
/* INTERNAL FUNCTIONS */
/* --------------------------------------------- */
char getaChar();
void getaLine();
#endif