-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparse.h
More file actions
29 lines (24 loc) · 738 Bytes
/
Copy pathparse.h
File metadata and controls
29 lines (24 loc) · 738 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
/****************************************************/
/* File: parse.h */
/* The parser interface for the TINY compiler */
/* Compiler Construction: Principles and Practice */
/* Kenneth C. Louden */
/****************************************************/
#ifndef _PARSE_H_
#define _PARSE_H_
#include "globals.h"
#include "tinytype.h"
/* Function parse returns the newly
* constructed syntax tree
*/
TreeNode * parse(void);
/* function prototypes for recursive calls */
bool match_possible_lbracket();
bool is_line_end();// is the end of line?
/*用来存储typedef 定义的映射关系*/
typedef struct type_def_map
{
char * key;
TypeInfo type;
} typeDefMap;
#endif