-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathScan.h
More file actions
33 lines (24 loc) · 887 Bytes
/
Copy pathScan.h
File metadata and controls
33 lines (24 loc) · 887 Bytes
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
/*********************************************************************
* NAME: Benjamin Fowler
* NUMBER: 02251132
* SUBJECT: Modern Compiler Construction
* INSTRUCTOR: Dr Wayne Kelly
*********************************************************************
* MODULE: Scan.h
* PURPOSE: Declares the public portions of the Scan module.
* DATE STARTED: 5th March, 2000.
* LAST EDITED: 5th March, 2000.
*********************************************************************/
#ifndef SCAN_H
#define SCAN_H
/* Define the maximum token length (use Turbo Pascal conventions) */
#define MAXTOKENLEN 64
/* tokenString holds the lexeme being scanned */
extern char tokenString[MAXTOKENLEN+1];
/*
* NAME: getToken()
* PURPOSE: Returns the next token in the source file.
*/
TokenType getToken(void);
#endif
/* END OF FILE */